0% found this document useful (0 votes)
26 views

Hello Python

This document provides an introduction to programming with Python. It discusses the course details including instructors, prerequisites, length and type. It then defines programming and the role of different programming languages. It specifically focuses on Python, explaining why it is popular and commonly used for web development, AI, machine learning and data science projects. The document concludes by discussing how to set up a Python development environment.

Uploaded by

Ezatullah Ahmadi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Hello Python

This document provides an introduction to programming with Python. It discusses the course details including instructors, prerequisites, length and type. It then defines programming and the role of different programming languages. It specifically focuses on Python, explaining why it is popular and commonly used for web development, AI, machine learning and data science projects. The document concludes by discussing how to set up a Python development environment.

Uploaded by

Ezatullah Ahmadi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

Click to edit Master title style

Hello Python
Introduction to programming with Python

1
Click to edit Master title style

Lecturers
➢ Mujeebullah Arlass ➢ Mansoor Ahmadzai

2
Course
Click to editIntroduction
Master title style

• Course name: Hello Python


• Course level: Beginner
• Pre-requisites:
• Basic Mathematics
• Basic English
• Type of course: Project-based
• Course length: 4 weeks (2 days per week)

3 3
Click to edit Master title style
Programming
• A technological process for telling a computer
which tasks to perform in order to solve problems.
• Collaboration between humans and computers, in
which humans create instructions for a computer
to follow (code) in a language computers can
understand.

4 4
Click to edit Master title style

Why programming???

5 5
Click
The Five
to edit
Industrial
MasterRevolutions
title style

Industry 1.0 Industry 2.0 Industry 3.0 Industry 4.0 Industry 5.0

(Mechanization) (Electrification) (Automation) (Digitalization) (Personalization)


• 18th century • 19th century • 20th century • 21st century • Human-machine
collaboration
• Began in England • Electricity • Computers • Digital communications
• Autonomous
• Steam power • Assembly line • Internet • Smart factories (robotics) vehicles
• IOT and AI • Robotics
• 3D printing

6 6
Thetoprogramming
Click role
edit Master title style

• The first programmable devices appeared in


the mid 20th century enabling computers to
automate tasks.
• A key concept in the core technologies of the
fourth industrial revolution.
• Vast flexibilization of computer technologies in
interacting with human beings.

7 7
Click to edit Master title style

Programming languages

8 8
Programming
Click languages
to edit Master title style

• A programming language is a system of


notation for writing computer programs.
• The two basic types of programming
languages:
• Low-level languages
• High-level languages

9 9
Low-level
Click languages
to edit Master title style

1-Machine Language(Machine Code)


• The elemental language of computers
• It is read by the computer's central
processing unit (CPU).
• It is composed of digital binary numbers
and looks like a very long sequence of
zeros and ones.
• 010110100001101101010101010

1010
Low-level
Click languages
to edit Master title style

2- Assembly Language
• uses short words (mnemonics) for instructions
instead of binary numbers.
• designed to be readable by humans.
• MUL: multiplies data
• MOV: moves data
• ADD: adds data

1111
High-level
Click languages
to edit Master title style

• Enables development of a program in a much


more user- friendly programming context.
• They are generally independent of the
computer's hardware architecture.
• Many types of high-level language exist:
• Python
• Java
• JavaScript
• C++
• C#
1212
Compiler
Click vs Interpreter
to edit Master title style

• Programs written in high-level languages must


be translated into machine language to be
executed.
• We have two types of translator:
• A compiler translates the entire source code in a
single run, like Java, C++, C#, Swift.
• An interpreter translates the entire source code
line by line, like Python, JavaScript, Ruby.

1313
Python
Click to edit Master title style

• Python is a high-level, interpreted, general-


purpose programming language.
• It was created by Guido van Rossum, and first
released on February 20, 1991.
• It is written in C programming language.
• While you may know the python as a large
snake, the name of the Python programming
language comes from an old BBC television
comedy sketch series called Monty Python's
Flying Circus.

1414
Click to edit Master title style

Why Python?

1515
Python
Click role in
to edit Master titleIR4
styleand

the recent technologies


• Scripting and Automation
• Web development (Web 3.0)
• AI and Machine Learning
• Data Science

1616
Reasons
Click to use
to edit Master title Python
style

• Easy to learn and use


• Active community
• Rich libraries and packages
• Extensive career opportunities

1717
Projects
Click Python
to edit Master titleused
style in
• Web
• Google, YouTube, Facebook, Amazon, Yahoo,
Spotify, Netflix, Dropbox, Uber, Quora,
Pinterest, …
• AI and Machine Leaning
• Face recognition software, object recognition,
Chat GPT, …

1818
Click to edit Master title style

Setting up environment…
In-class activity

1919
Click to edit Master title style
Python installation
https://www.python.org/downloads/

IDEs

2020
Click to edit Master title style

The End

21

You might also like