SlideShare a Scribd company logo
1 of 17
Download to read offline
Computer Science
Class XI ( As per CBSE Board)
Chapter 6
Getting
Started
With Python
Visit : python.mykvs.in for regular updates
Termwise
Syllabus
2021-22
Python Introduction
It is widely used general purpose, high level programming
language. Developed by Guido van Rossum in 1991.
It is used for:
software development,
web development (server-side),
system scripting,
Mathematics.
Visit : python.mykvs.in for regular updates
Features of Python
1. Easy to use – Due to simple syntax rule
2. Interpreted language – Code execution &
interpretation line by line
3. Cross-platform language – It can run on windows,
Linux, Macintosh etc. equally
4. Expressive language – Less code to be written as it
itself express the purpose of the code.
5. Completeness – Support wide rage of library
6. Free & Open Source – Can be downloaded freely
and source code can be modify for improvement
Visit : python.mykvs.in for regular updates
Shortcomings of Python
1. Lesser libraries – as compared to other
programming languages like c++,java,. Net
2. Slow language – as it is interpreted languages, it
executes the program slowly.
3. Weak on Type-binding – It not pin point on use of a
single variable for different data type.
Visit : python.mykvs.in for regular updates
Installing Python
Two Steps Only –
1. Download Python distribution
2. Python installation process
Visit : python.mykvs.in for regular updates
Installing Python
1. Download Python distribution
You can download python distribution from the link given below
https://www.python.org/downloads/
Note – Download only that python distribution/MSI Installer, which is best suited for
the Operating system on which you want to install it.
Visit : python.mykvs.in for regular updates
Installing Python
2. Python installation process
1. Double-click the icon labeling the file <version>.exe
Popup window will appear
Click on Run option
Visit : python.mykvs.in for regular updates
Installing Python
2. Setup popup window will appear
If the Python Installer finds an earlier version of Python installed on your computer,
the Install Now message will instead appear as Upgrade Now(and the checkboxes will
not appear).
Highlight the Install Now (or Upgrade Now) message, and then click it
Visit : python.mykvs.in for regular updates
Installing Python
3. User Account Control pop-up window will appear
Click the Yes button.
Visit : python.mykvs.in for regular updates
Installing Python
4. A new Python <version> Setup pop-up window will appear
with a Setup Progress message and a progress bar.
Visit : python.mykvs.in for regular updates
Installing Python
5. Soon, a new Python <version> Setup pop-up window will
appear with a Setup was successfully message
Click the close button
Visit : python.mykvs.in for regular updates
How to work in Python
Visit : python.mykvs.in for regular updates
PROCESS OF WRITING PROGRAM
After installation of python ,we can work on it in following ways
(i) in Interactive mode
(ii) in Script mode
How to work in Python
Visit : python.mykvs.in for regular updates
(i) in Interactive mode
* Search the python.exe file in the drive in which it is
installed.
If found double click it to start python in interactive
mode
How to work in Python
Visit : python.mykvs.in for regular updates
* Click start button -> All programs ->
python<version>->IDLE(Python GUI)
How to work in Python
Visit : python.mykvs.in for regular updates
Python command
prompt >>>
Type the following at prompt
print “hello”
print 8*3
print 3**3
k=3+4*3
print k
How to work in Python
Visit : python.mykvs.in for regular updates
(ii) in Script mode
Step 1 (Create program file) / Hello world program
Below steps are for simple hello world program
a. Click Start button->All Programs ->
Python<version>->IDLE
b. Now click File->New in IDLE Python Shell
Now type
print (“hello”)
print (“world”)
print (“python is”,”object oriented programming lang.”)
c. Click File->Save and then save the file with filename
and .py extension
How to work in Python
Visit : python.mykvs.in for regular updates
(ii) in Script mode
Step 2 (Run program file)
a. Click Open command from IDLE’s File menu and select the file
you have already saved
b. Click Run-> Run Module
c. It will execute all the commands of program file and display
output in separate python shell window
Note :- Python comes in 2 flavors – python 2.x and python 3.x . Later
one is Backward incompatible language as decide by Python
Software foundation(PSF). Mean code written in 2.x will not execute
on 3.x . Visit the below link for difference between 2.x & 3.x
https://www.geeksforgeeks.org/important-differences-
between-python-2-x-and-python-3-x-with-examples/

More Related Content

Similar to getting started with python6 (1).pdf

Seminar report On Python
Seminar report On PythonSeminar report On Python
Seminar report On PythonShivam Gupta
 
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.Niraj Bharambe
 
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
 
Seminar report on python 3 course
Seminar report on python 3 courseSeminar report on python 3 course
Seminar report on python 3 courseHimanshuPanwar38
 
intro.pptx (1).pdf
intro.pptx (1).pdfintro.pptx (1).pdf
intro.pptx (1).pdfANIKULSAIKH
 
REPORT ON AUDIT COURSE PYTHON BY SANA 2.pdf
REPORT ON AUDIT COURSE PYTHON BY SANA 2.pdfREPORT ON AUDIT COURSE PYTHON BY SANA 2.pdf
REPORT ON AUDIT COURSE PYTHON BY SANA 2.pdfSana Khan
 
Python Programming for Beginners
Python Programming for BeginnersPython Programming for Beginners
Python Programming for BeginnersP. SUNDARI ARUN
 
Python setup for dummies
Python setup for dummiesPython setup for dummies
Python setup for dummiesRajesh Rajamani
 
Get Started with MicroPython ESP32
Get Started with MicroPython ESP32Get Started with MicroPython ESP32
Get Started with MicroPython ESP32fanghe22
 
Get Starte with MicroPython ESP32
Get Starte with MicroPython ESP32Get Starte with MicroPython ESP32
Get Starte with MicroPython ESP32fanghe22
 
Fundamentals of python
Fundamentals of pythonFundamentals of python
Fundamentals of pythonBijuAugustian
 
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
 
Introduction to python for Beginners
Introduction to python for Beginners Introduction to python for Beginners
Introduction to python for Beginners Sujith Kumar
 
wxFormBuilder - Tutorial on “A GUI for making GUIs” for Python
wxFormBuilder - Tutorial on “A GUI for making GUIs” for PythonwxFormBuilder - Tutorial on “A GUI for making GUIs” for Python
wxFormBuilder - Tutorial on “A GUI for making GUIs” for PythonUmar Yusuf
 
Python Tutorial | Python Programming Language
Python Tutorial | Python Programming LanguagePython Tutorial | Python Programming Language
Python Tutorial | Python Programming Languageanaveenkumar4
 
Inptools Manual
Inptools ManualInptools Manual
Inptools ManualMawar 99
 

Similar to getting started with python6 (1).pdf (20)

Seminar report On Python
Seminar report On PythonSeminar report On Python
Seminar report On Python
 
python-handbook.pdf
python-handbook.pdfpython-handbook.pdf
python-handbook.pdf
 
How to Install Python on Linux
How to Install Python on LinuxHow to Install Python on Linux
How to Install Python on Linux
 
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
 
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
 
Seminar report on python 3 course
Seminar report on python 3 courseSeminar report on python 3 course
Seminar report on python 3 course
 
intro.pptx (1).pdf
intro.pptx (1).pdfintro.pptx (1).pdf
intro.pptx (1).pdf
 
REPORT ON AUDIT COURSE PYTHON BY SANA 2.pdf
REPORT ON AUDIT COURSE PYTHON BY SANA 2.pdfREPORT ON AUDIT COURSE PYTHON BY SANA 2.pdf
REPORT ON AUDIT COURSE PYTHON BY SANA 2.pdf
 
Python Programming for Beginners
Python Programming for BeginnersPython Programming for Beginners
Python Programming for Beginners
 
Python setup for dummies
Python setup for dummiesPython setup for dummies
Python setup for dummies
 
Get Started with MicroPython ESP32
Get Started with MicroPython ESP32Get Started with MicroPython ESP32
Get Started with MicroPython ESP32
 
Get Starte with MicroPython ESP32
Get Starte with MicroPython ESP32Get Starte with MicroPython ESP32
Get Starte with MicroPython ESP32
 
Fundamentals of python
Fundamentals of pythonFundamentals of python
Fundamentals of python
 
Introduction to Python
Introduction to Python Introduction to Python
Introduction to Python
 
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 for Beginners
Introduction to python for Beginners Introduction to python for Beginners
Introduction to python for Beginners
 
wxFormBuilder - Tutorial on “A GUI for making GUIs” for Python
wxFormBuilder - Tutorial on “A GUI for making GUIs” for PythonwxFormBuilder - Tutorial on “A GUI for making GUIs” for Python
wxFormBuilder - Tutorial on “A GUI for making GUIs” for Python
 
Python Tutorial | Python Programming Language
Python Tutorial | Python Programming LanguagePython Tutorial | Python Programming Language
Python Tutorial | Python Programming Language
 
Inptools Manual
Inptools ManualInptools Manual
Inptools Manual
 
Introduction python
Introduction pythonIntroduction python
Introduction python
 

Recently uploaded

History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 

Recently uploaded (20)

History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 

getting started with python6 (1).pdf

  • 1. Computer Science Class XI ( As per CBSE Board) Chapter 6 Getting Started With Python Visit : python.mykvs.in for regular updates Termwise Syllabus 2021-22
  • 2. Python Introduction It is widely used general purpose, high level programming language. Developed by Guido van Rossum in 1991. It is used for: software development, web development (server-side), system scripting, Mathematics. Visit : python.mykvs.in for regular updates
  • 3. Features of Python 1. Easy to use – Due to simple syntax rule 2. Interpreted language – Code execution & interpretation line by line 3. Cross-platform language – It can run on windows, Linux, Macintosh etc. equally 4. Expressive language – Less code to be written as it itself express the purpose of the code. 5. Completeness – Support wide rage of library 6. Free & Open Source – Can be downloaded freely and source code can be modify for improvement Visit : python.mykvs.in for regular updates
  • 4. Shortcomings of Python 1. Lesser libraries – as compared to other programming languages like c++,java,. Net 2. Slow language – as it is interpreted languages, it executes the program slowly. 3. Weak on Type-binding – It not pin point on use of a single variable for different data type. Visit : python.mykvs.in for regular updates
  • 5. Installing Python Two Steps Only – 1. Download Python distribution 2. Python installation process Visit : python.mykvs.in for regular updates
  • 6. Installing Python 1. Download Python distribution You can download python distribution from the link given below https://www.python.org/downloads/ Note – Download only that python distribution/MSI Installer, which is best suited for the Operating system on which you want to install it. Visit : python.mykvs.in for regular updates
  • 7. Installing Python 2. Python installation process 1. Double-click the icon labeling the file <version>.exe Popup window will appear Click on Run option Visit : python.mykvs.in for regular updates
  • 8. Installing Python 2. Setup popup window will appear If the Python Installer finds an earlier version of Python installed on your computer, the Install Now message will instead appear as Upgrade Now(and the checkboxes will not appear). Highlight the Install Now (or Upgrade Now) message, and then click it Visit : python.mykvs.in for regular updates
  • 9. Installing Python 3. User Account Control pop-up window will appear Click the Yes button. Visit : python.mykvs.in for regular updates
  • 10. Installing Python 4. A new Python <version> Setup pop-up window will appear with a Setup Progress message and a progress bar. Visit : python.mykvs.in for regular updates
  • 11. Installing Python 5. Soon, a new Python <version> Setup pop-up window will appear with a Setup was successfully message Click the close button Visit : python.mykvs.in for regular updates
  • 12. How to work in Python Visit : python.mykvs.in for regular updates PROCESS OF WRITING PROGRAM After installation of python ,we can work on it in following ways (i) in Interactive mode (ii) in Script mode
  • 13. How to work in Python Visit : python.mykvs.in for regular updates (i) in Interactive mode * Search the python.exe file in the drive in which it is installed. If found double click it to start python in interactive mode
  • 14. How to work in Python Visit : python.mykvs.in for regular updates * Click start button -> All programs -> python<version>->IDLE(Python GUI)
  • 15. How to work in Python Visit : python.mykvs.in for regular updates Python command prompt >>> Type the following at prompt print “hello” print 8*3 print 3**3 k=3+4*3 print k
  • 16. How to work in Python Visit : python.mykvs.in for regular updates (ii) in Script mode Step 1 (Create program file) / Hello world program Below steps are for simple hello world program a. Click Start button->All Programs -> Python<version>->IDLE b. Now click File->New in IDLE Python Shell Now type print (“hello”) print (“world”) print (“python is”,”object oriented programming lang.”) c. Click File->Save and then save the file with filename and .py extension
  • 17. How to work in Python Visit : python.mykvs.in for regular updates (ii) in Script mode Step 2 (Run program file) a. Click Open command from IDLE’s File menu and select the file you have already saved b. Click Run-> Run Module c. It will execute all the commands of program file and display output in separate python shell window Note :- Python comes in 2 flavors – python 2.x and python 3.x . Later one is Backward incompatible language as decide by Python Software foundation(PSF). Mean code written in 2.x will not execute on 3.x . Visit the below link for difference between 2.x & 3.x https://www.geeksforgeeks.org/important-differences- between-python-2-x-and-python-3-x-with-examples/