ب ١
ب ١
Introduction to Programming
1
PYTHON – INSTALLATION, INTRODUCTION and KEYWORDS
Lecture Goals
INSTALLATION
1. Checking python software installed or not in laptop/computer
2. Download python software
3. Important step while installing software
4. Check the python version
INTRODUCTION
1. What is Python?
2. Python programming applications
3. Features
4. History of Python?
5. Why the name was Python?
6. Python logo
7. Current python version
8. Python supports
9. How Python works
KEYWORDS
1. What is a keyword in Python? How many keywords are available in Python?
2
Dr. Quadri Noorulhasan Naveed 2
PYTHON – INSTALLATION
1.Checking python software installed or not in laptop/computer
✓We can check python software is installed or not in laptop/computer.
✓Open a command prompt in your laptop/computer.
✓Type py command in command prompt and enter then check it.
✓If python is not installed, then we will get response as above screenshot.
3
Dr. Quadri Noorulhasan Naveed 3
PYTHON – DOWNLOAD
2.Download python software
✓We can download python software from official website, we can find
url in below,
https://www.python.org/downloads/
5
Dr. Quadri Noorulhasan Naveed 5
PYTHON – INSTALL
✓Once we check the checkbox then we need to click on Install Now.
6
Dr. Quadri Noorulhasan Naveed 6
PYTHON – SETUP PROGRESS
7
Dr. Quadri Noorulhasan Naveed 7
PYTHON – SETUP SUCCESSFUL
✓Finally, we will get, Setup was successful screen
8
Dr. Quadri Noorulhasan Naveed 8
PYTHON VERSION
4.Check the python version
✓Open a NEW command prompt in your laptop/computer.
✓Type python --version command in command prompt and check it.
9
Dr. Quadri Noorulhasan Naveed 9
PYTHON – INTRODUCTION
1. WHAT IS PYTHON?
✓ Python is a general purpose and high-level programming language.
10
Dr. Quadri Noorulhasan Naveed 10
2. PYTHON PROGRAMMING APPLICATIONS
✓By using python programming we can develop,
Type of application Purpose of the application
4. Bigdata applications ✓ An application which can process the BigData. (like pyspark)
11
Dr. Quadri Noorulhasan Naveed 11
3. IMPORTANT FEATURES
✓ Easy to Learn ✓ Both Procedure and Object Oriented
✓ Freeware and Open Source ✓ Interpreted
✓ High Level Language ✓ Extensible
✓ Platform Independent ✓ Embeddable
✓ Memory Management ✓ Huge Library
✓ Dynamically Typed
12
Dr. Quadri Noorulhasan Naveed 12
4. HISTORY OF PYTHON?
✓ Python was created by Guido Van Rossum in the
year of 1991.
✓ Python is open-source software means we can
download freely from www.python.org website
and customise the code as well. Guido Van Rossum
8. PYTHON SUPPORTS
✓Python supports Functional and Object-oriented programming
approach
14
Dr. Quadri Noorulhasan Naveed 14
9. HOW PYTHON WORKS
✓ Python Virtual Machine (PVM) is a program which provides programming
environment.
✓ The compiled code of python source code is called byte code. Byte code is
collection of mnemonics which understand by PVM. Byte code is platform
independent code.
✓ The role of PVM is to convert the byte code instructions into machine code so the
computer can execute those machine code instructions and display the output.
✓ Interpreter converts the byte code into machine code and sends that machine
code to the computer processor for execution.
15
Dr. Quadri Noorulhasan Naveed 15
PYTHON – KEYWORDS
o https://docs.python.org/3.13/reference/lexical_analysis.html#keywords
16
Dr. Quadri Noorulhasan Naveed 16
All Python keywords
17
Dr. Quadri Noorulhasan Naveed 17
All Python keywords in one simple table
18
Dr. Quadri Noorulhasan Naveed 18
Make a note:
oTrue
oFalse
oNone
19
Dr. Quadri Noorulhasan Naveed 19
1312 / 121 CCS-3
Introduction to Programming
Questions?
20