SlideShare a Scribd company logo
1 of 28
Download to read offline
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 .pdfVaibhavKumarSinghkal
 
python intro and installation.pptx
python intro and installation.pptxpython intro and installation.pptx
python intro and installation.pptxadityakumawat625
 
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 guidanceMantoshKumar79
 
Introduction to python for dummies
Introduction to python for dummiesIntroduction to python for dummies
Introduction to python for dummiesLalit Jain
 
Introduction to Python.pptx
Introduction to Python.pptxIntroduction to Python.pptx
Introduction to Python.pptxSamyakJain461
 
Getting started with python
Getting started with pythonGetting started with python
Getting started with pythonTechieHours
 
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 PythonPraveen M Jigajinni
 
Seminar report On Python
Seminar report On PythonSeminar report On Python
Seminar report On PythonShivam 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).pdfYadavHarshKr
 
Introduction to Python Programming Basics
Introduction  to  Python  Programming BasicsIntroduction  to  Python  Programming Basics
Introduction to Python Programming BasicsDhana malar
 
PYTHON FEATURES.pptx
PYTHON FEATURES.pptxPYTHON FEATURES.pptx
PYTHON FEATURES.pptxMaheShiva
 

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
 
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
 
Python Programming Part 1.pdf
Python Programming Part 1.pdfPython Programming Part 1.pdf
Python Programming Part 1.pdf
 

Recently uploaded

complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 

Recently uploaded (20)

complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 

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.