SlideShare a Scribd company logo
Unit-1: (i) Introduction to Python Programming
(ii) Conditional Statements, Looping, Control Statements
(i) Introduction to Python Programming
History of Python
• Python is a widely used general-purpose, high-level programming language.
• It was initially designed by Guido Van Rossum in 1991 and developed by Python
Software Foundation.
• It was started firstly as a hobby project because he was looking for an interesting
project to keep him occupied during Christmas.
• When discussing the history of Python, it’s impossible to overlook the influence of
the ABC programming language, which influenced the design and development of
Python.
• Van Rossum worked as an implementer of the ABC programming language at CWI
(Centrum Voor Wiskunde en Informatica) at Netherlands in the early 1980s.
• It was mainly developed for emphasis on code readability, and its syntax allows
programmers to express concepts in fewer lines of code.
• The inspiration for the name came from BBC’s TV Show – ‘Monty Python’s Flying
Circus’, as he was a big fan of the TV show and also he wanted a short, unique and
slightly mysterious name for his invention and hence he named it Python!
• Python 3.0 was released on December 3rd, 2008.
• Latest version of python is Python 3.10.2.
• Python Software Foundation (PSF) used to support two major versions, Python 2.x &
Python 3.x.
• PSF supported Python 2 because a large body of existing code could not be forward
ported to Python 3. So, they supported Python 2 until January 2020, but now they
have stopped supporting it.
Features of Python
• Easy to Learn and Use
Python is easy to learn as compared to other programming languages.
The Python language is designed to make developers life easy.
Its syntax is straightforward and much the same as the English language.
• Free and Open Source
Python language is freely available at its official website.
You can download it from the link: https://www.python.org/downloads/
• Object-Oriented Language
Python supports object-oriented language and concepts of classes, objects
encapsulation, etc.
• Interpreted Language
Python is an interpreted language; it means the Python program is executed one
line at a time. The advantage of being interpreted language, it makes debugging
easy and portable.
• Cross-platform Language
Python can run equally on different platforms such as Windows, Mac OS, Linux,
UNIX, and Macintosh, etc. So, we can say that Python is a portable language.
• Dynamically Typed Language
Python is a dynamically typed language. That means the type (for example- int,
double, long, etc.) for a variable is decided at run time not in advance because of
this feature we don’t need to specify the type of variable.
• Large Standard Library
It provides a vast range of libraries for the various fields such as machine learning,
web development, also for the scripting. There are various machine learning
libraries, such as Tensor flow, Pandas, Numpy, Keras, and Pytorch, etc.
Installation of Anaconda
Step-1: Search “download anaconda individual edition” in Google.
Step-2: Click on the first link.
Step-3: Click on download (if your Operating System (OS) is Windows).
Note: If your OS is MacOS then click on the apple logo. If your OS is Linux then click on Linux logo.
Further steps may be different for these Operating Systems.
Step-4: Locate the download file and double click on it.
Step-5: Click on Run
Step-6: Click on Next
Step-7: Click on I Agree
Step-8: Click on Next.
Step-9: Click on Next.
Step-10: Click on Install.
Step-11: Click on Next.
Step-12: Click on Next.
Step-13: Click on Finish
Hey! You just installed Anaconda.
Open Anaconda
To open Anaconda click on start menu and search anaconda then click on Anaconda Navigator (anaconda3). Wait till
it opens.
Restart your computer if you face problem to open anaconda navigator then try to open again.
You will see the following window when it opens.
You can open Jupyter Notebook and Spyder by just clicking on Launch.
Jupyter Notebook
After Launching Jupyter Notebook, a new window will open in Internet explorer.
Open Documents folder.
Open Python Scripts folder. We will create our Jupyter Notebook files in Python Scripts folder.
Create a new Jupyter Notebook by clicking on New and selecting Python 3 (ipykernel).
A new tab will open.
This is Jupyter Notebook file.
S
To change the title of the file first click on untitled, then edit the name and click on rename.
Google Colab
Colab is a free Jupyter notebook environment that runs entirely in the cloud.
To open it, search “Google colab” in Google then click on the first link.
Intro to Python Programming
Intro to Python Programming

More Related Content

Similar to Intro to Python Programming

Introduction to Python Unit -1 Part .pdf
Introduction to Python Unit -1 Part .pdfIntroduction to Python Unit -1 Part .pdf
Introduction to Python Unit -1 Part .pdf
VaibhavKumarSinghkal
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
AnirudhaGaikwad4
 
1-ppt-python.ppt
1-ppt-python.ppt1-ppt-python.ppt
1-ppt-python.ppt
ssusera99a83
 
python intro and installation.pptx
python intro and installation.pptxpython intro and installation.pptx
python intro and installation.pptx
adityakumawat625
 
Python for students step by step guidance
Python for students step by step guidancePython for students step by step guidance
Python for students step by step guidance
MantoshKumar79
 
Introduction to python for dummies
Introduction to python for dummiesIntroduction to python for dummies
Introduction to python for dummies
Lalit Jain
 
Exploratory Analytics in Python provided by EY.pdf
Exploratory Analytics in Python provided by EY.pdfExploratory Analytics in Python provided by EY.pdf
Exploratory Analytics in Python provided by EY.pdf
totondak
 
Introduction to Python.pptx
Introduction to Python.pptxIntroduction to Python.pptx
Introduction to Python.pptx
SamyakJain461
 
Getting started with python
Getting started with pythonGetting started with python
Getting started with python
TechieHours
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
priyanshupanchal8
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
SudhanshiBakre1
 
Python basics
Python basicsPython basics
Python basics
ssuser4e32df
 
Features of Python.pdf
Features of Python.pdfFeatures of Python.pdf
Features of Python.pdf
SudhanshiBakre1
 
11 Unit1 Chapter 1 Getting Started With Python
11   Unit1 Chapter 1 Getting Started With Python11   Unit1 Chapter 1 Getting Started With Python
11 Unit1 Chapter 1 Getting Started With Python
Praveen M Jigajinni
 
Seminar report On Python
Seminar report On PythonSeminar report On Python
Seminar report On Python
Shivam Gupta
 
Training report 1923-b.e-eee-batchno--intern-54 (1).pdf
Training report 1923-b.e-eee-batchno--intern-54 (1).pdfTraining report 1923-b.e-eee-batchno--intern-54 (1).pdf
Training report 1923-b.e-eee-batchno--intern-54 (1).pdf
YadavHarshKr
 
Python for Beginners.docx
Python for Beginners.docxPython for Beginners.docx
Python for Beginners.docx
AbhinavSharma309481
 
Introduction to Python Programming Basics
Introduction  to  Python  Programming BasicsIntroduction  to  Python  Programming Basics
Introduction to Python Programming Basics
Dhana malar
 
Research paper on python by Rj
Research paper on python by RjResearch paper on python by Rj
Research paper on python by Rj
Shree M.L.Kakadiya MCA mahila college, Amreli
 
PYTHON FEATURES.pptx
PYTHON FEATURES.pptxPYTHON FEATURES.pptx
PYTHON FEATURES.pptx
MaheShiva
 

Similar to Intro to Python Programming (20)

Introduction to Python Unit -1 Part .pdf
Introduction to Python Unit -1 Part .pdfIntroduction to Python Unit -1 Part .pdf
Introduction to Python Unit -1 Part .pdf
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
1-ppt-python.ppt
1-ppt-python.ppt1-ppt-python.ppt
1-ppt-python.ppt
 
python intro and installation.pptx
python intro and installation.pptxpython intro and installation.pptx
python intro and installation.pptx
 
Python for students step by step guidance
Python for students step by step guidancePython for students step by step guidance
Python for students step by step guidance
 
Introduction to python for dummies
Introduction to python for dummiesIntroduction to python for dummies
Introduction to python for dummies
 
Exploratory Analytics in Python provided by EY.pdf
Exploratory Analytics in Python provided by EY.pdfExploratory Analytics in Python provided by EY.pdf
Exploratory Analytics in Python provided by EY.pdf
 
Introduction to Python.pptx
Introduction to Python.pptxIntroduction to Python.pptx
Introduction to Python.pptx
 
Getting started with python
Getting started with pythonGetting started with python
Getting started with python
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
 
Python basics
Python basicsPython basics
Python basics
 
Features of Python.pdf
Features of Python.pdfFeatures of Python.pdf
Features of Python.pdf
 
11 Unit1 Chapter 1 Getting Started With Python
11   Unit1 Chapter 1 Getting Started With Python11   Unit1 Chapter 1 Getting Started With Python
11 Unit1 Chapter 1 Getting Started With Python
 
Seminar report On Python
Seminar report On PythonSeminar report On Python
Seminar report On Python
 
Training report 1923-b.e-eee-batchno--intern-54 (1).pdf
Training report 1923-b.e-eee-batchno--intern-54 (1).pdfTraining report 1923-b.e-eee-batchno--intern-54 (1).pdf
Training report 1923-b.e-eee-batchno--intern-54 (1).pdf
 
Python for Beginners.docx
Python for Beginners.docxPython for Beginners.docx
Python for Beginners.docx
 
Introduction to Python Programming Basics
Introduction  to  Python  Programming BasicsIntroduction  to  Python  Programming Basics
Introduction to Python Programming Basics
 
Research paper on python by Rj
Research paper on python by RjResearch paper on python by Rj
Research paper on python by Rj
 
PYTHON FEATURES.pptx
PYTHON FEATURES.pptxPYTHON FEATURES.pptx
PYTHON FEATURES.pptx
 

Recently uploaded

Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 

Recently uploaded (20)

Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 

Intro to Python Programming

  • 1. Unit-1: (i) Introduction to Python Programming (ii) Conditional Statements, Looping, Control Statements (i) Introduction to Python Programming History of Python • Python is a widely used general-purpose, high-level programming language. • It was initially designed by Guido Van Rossum in 1991 and developed by Python Software Foundation. • It was started firstly as a hobby project because he was looking for an interesting project to keep him occupied during Christmas.
  • 2. • When discussing the history of Python, it’s impossible to overlook the influence of the ABC programming language, which influenced the design and development of Python. • Van Rossum worked as an implementer of the ABC programming language at CWI (Centrum Voor Wiskunde en Informatica) at Netherlands in the early 1980s. • It was mainly developed for emphasis on code readability, and its syntax allows programmers to express concepts in fewer lines of code. • The inspiration for the name came from BBC’s TV Show – ‘Monty Python’s Flying Circus’, as he was a big fan of the TV show and also he wanted a short, unique and slightly mysterious name for his invention and hence he named it Python! • Python 3.0 was released on December 3rd, 2008. • Latest version of python is Python 3.10.2.
  • 3. • Python Software Foundation (PSF) used to support two major versions, Python 2.x & Python 3.x. • PSF supported Python 2 because a large body of existing code could not be forward ported to Python 3. So, they supported Python 2 until January 2020, but now they have stopped supporting it.
  • 4. Features of Python • Easy to Learn and Use Python is easy to learn as compared to other programming languages. The Python language is designed to make developers life easy. Its syntax is straightforward and much the same as the English language. • Free and Open Source Python language is freely available at its official website. You can download it from the link: https://www.python.org/downloads/ • Object-Oriented Language Python supports object-oriented language and concepts of classes, objects encapsulation, etc.
  • 5. • Interpreted Language Python is an interpreted language; it means the Python program is executed one line at a time. The advantage of being interpreted language, it makes debugging easy and portable. • Cross-platform Language Python can run equally on different platforms such as Windows, Mac OS, Linux, UNIX, and Macintosh, etc. So, we can say that Python is a portable language. • Dynamically Typed Language Python is a dynamically typed language. That means the type (for example- int, double, long, etc.) for a variable is decided at run time not in advance because of this feature we don’t need to specify the type of variable.
  • 6. • Large Standard Library It provides a vast range of libraries for the various fields such as machine learning, web development, also for the scripting. There are various machine learning libraries, such as Tensor flow, Pandas, Numpy, Keras, and Pytorch, etc.
  • 7. Installation of Anaconda Step-1: Search “download anaconda individual edition” in Google.
  • 8. Step-2: Click on the first link. Step-3: Click on download (if your Operating System (OS) is Windows). Note: If your OS is MacOS then click on the apple logo. If your OS is Linux then click on Linux logo. Further steps may be different for these Operating Systems.
  • 9. Step-4: Locate the download file and double click on it. Step-5: Click on Run
  • 11. Step-7: Click on I Agree
  • 14. Step-10: Click on Install.
  • 17. Step-13: Click on Finish Hey! You just installed Anaconda.
  • 18. Open Anaconda To open Anaconda click on start menu and search anaconda then click on Anaconda Navigator (anaconda3). Wait till it opens. Restart your computer if you face problem to open anaconda navigator then try to open again.
  • 19. You will see the following window when it opens. You can open Jupyter Notebook and Spyder by just clicking on Launch.
  • 20. Jupyter Notebook After Launching Jupyter Notebook, a new window will open in Internet explorer. Open Documents folder.
  • 21. Open Python Scripts folder. We will create our Jupyter Notebook files in Python Scripts folder.
  • 22. Create a new Jupyter Notebook by clicking on New and selecting Python 3 (ipykernel). A new tab will open.
  • 23. This is Jupyter Notebook file.
  • 24. S
  • 25. To change the title of the file first click on untitled, then edit the name and click on rename.
  • 26. Google Colab Colab is a free Jupyter notebook environment that runs entirely in the cloud. To open it, search “Google colab” in Google then click on the first link.