SlideShare a Scribd company logo
Chapter 4
Getting
Started
With python
New
syllabus
2022-23
Visit : python.mykvs.in for regular updates
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,macinetosh 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 Conrol 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
Python Interpreter
How to work in Python
Visit : python.mykvs.in for regular updates
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)
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 flavours – 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 python.pdf

python-handbook.pdf
python-handbook.pdfpython-handbook.pdf
python-handbook.pdf
RaviKumar76265
 
DESKTOP GUI APP DEVELOPMENT USING PYTHON!
DESKTOP GUI APP DEVELOPMENT USING PYTHON!DESKTOP GUI APP DEVELOPMENT USING PYTHON!
DESKTOP GUI APP DEVELOPMENT USING PYTHON!
Umar Yusuf
 
DESKTOP GUI APP DEVELOPMENT USING PYTHON!
DESKTOP GUI APP DEVELOPMENT USING PYTHON!DESKTOP GUI APP DEVELOPMENT USING PYTHON!
DESKTOP GUI APP DEVELOPMENT USING PYTHON!
Umar Yusuf
 
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
 
How to Install Python on Linux
How to Install Python on LinuxHow to Install Python on Linux
How to Install Python on Linux
Vinita Silaparasetty
 
Seminar report On Python
Seminar report On PythonSeminar report On Python
Seminar report On Python
Shivam Gupta
 
Python Programming for Beginners
Python Programming for BeginnersPython Programming for Beginners
Python Programming for Beginners
P. SUNDARI ARUN
 
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
 
intro.pptx (1).pdf
intro.pptx (1).pdfintro.pptx (1).pdf
intro.pptx (1).pdf
ANIKULSAIKH
 
Welcome_to_Python.pptx
Welcome_to_Python.pptxWelcome_to_Python.pptx
Welcome_to_Python.pptx
21M220KARTHIKEYANC
 
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
 
Seminar report on python 3 course
Seminar report on python 3 courseSeminar report on python 3 course
Seminar report on python 3 course
HimanshuPanwar38
 
Get Starte with MicroPython ESP32
Get Starte with MicroPython ESP32Get Starte with MicroPython ESP32
Get Starte with MicroPython ESP32
fanghe22
 
Get Started with MicroPython ESP32
Get Started with MicroPython ESP32Get Started with MicroPython ESP32
Get Started with MicroPython ESP32
fanghe22
 
Python setup for dummies
Python setup for dummiesPython setup for dummies
Python setup for dummies
Rajesh Rajamani
 
Fundamentals of python
Fundamentals of pythonFundamentals of python
Fundamentals of python
BijuAugustian
 
Python Tutorial | Python Programming Language
Python Tutorial | Python Programming LanguagePython Tutorial | Python Programming Language
Python Tutorial | Python Programming Language
anaveenkumar4
 
Introduction to python for Beginners
Introduction to python for Beginners Introduction to python for Beginners
Introduction to python for Beginners
Sujith Kumar
 
Introduction python
Introduction pythonIntroduction python
Introduction python
Jumbo Techno e_Learning
 
python intro and installation.pptx
python intro and installation.pptxpython intro and installation.pptx
python intro and installation.pptx
adityakumawat625
 

Similar to Getting started with python.pdf (20)

python-handbook.pdf
python-handbook.pdfpython-handbook.pdf
python-handbook.pdf
 
DESKTOP GUI APP DEVELOPMENT USING PYTHON!
DESKTOP GUI APP DEVELOPMENT USING PYTHON!DESKTOP GUI APP DEVELOPMENT USING PYTHON!
DESKTOP GUI APP DEVELOPMENT USING PYTHON!
 
DESKTOP GUI APP DEVELOPMENT USING PYTHON!
DESKTOP GUI APP DEVELOPMENT USING PYTHON!DESKTOP GUI APP DEVELOPMENT USING PYTHON!
DESKTOP GUI APP DEVELOPMENT USING PYTHON!
 
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.
 
How to Install Python on Linux
How to Install Python on LinuxHow to Install Python on Linux
How to Install Python on Linux
 
Seminar report On Python
Seminar report On PythonSeminar report On Python
Seminar report On Python
 
Python Programming for Beginners
Python Programming for BeginnersPython Programming for Beginners
Python Programming for Beginners
 
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
 
intro.pptx (1).pdf
intro.pptx (1).pdfintro.pptx (1).pdf
intro.pptx (1).pdf
 
Welcome_to_Python.pptx
Welcome_to_Python.pptxWelcome_to_Python.pptx
Welcome_to_Python.pptx
 
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
 
Get Starte with MicroPython ESP32
Get Starte with MicroPython ESP32Get Starte with MicroPython ESP32
Get Starte with MicroPython ESP32
 
Get Started with MicroPython ESP32
Get Started with MicroPython ESP32Get Started with MicroPython ESP32
Get Started with MicroPython ESP32
 
Python setup for dummies
Python setup for dummiesPython setup for dummies
Python setup for dummies
 
Fundamentals of python
Fundamentals of pythonFundamentals of python
Fundamentals of python
 
Python Tutorial | Python Programming Language
Python Tutorial | Python Programming LanguagePython Tutorial | Python Programming Language
Python Tutorial | Python Programming Language
 
Introduction to python for Beginners
Introduction to python for Beginners Introduction to python for Beginners
Introduction to python for Beginners
 
Introduction python
Introduction pythonIntroduction python
Introduction python
 
python intro and installation.pptx
python intro and installation.pptxpython intro and installation.pptx
python intro and installation.pptx
 

Recently uploaded

Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
Krassimira Luka
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
สมใจ จันสุกสี
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Leena Ghag-Sakpal
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
MysoreMuleSoftMeetup
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
Constructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective CommunicationConstructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective Communication
Chevonnese Chevers Whyte, MBA, B.Sc.
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
IGCSE Biology Chapter 14- Reproduction in Plants.pdf
IGCSE Biology Chapter 14- Reproduction in Plants.pdfIGCSE Biology Chapter 14- Reproduction in Plants.pdf
IGCSE Biology Chapter 14- Reproduction in Plants.pdf
Amin Marwan
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
Wahiba Chair Training & Consulting
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
ZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptxZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptx
dot55audits
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 

Recently uploaded (20)

Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
Constructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective CommunicationConstructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective Communication
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
IGCSE Biology Chapter 14- Reproduction in Plants.pdf
IGCSE Biology Chapter 14- Reproduction in Plants.pdfIGCSE Biology Chapter 14- Reproduction in Plants.pdf
IGCSE Biology Chapter 14- Reproduction in Plants.pdf
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
ZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptxZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptx
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 

Getting started with python.pdf

  • 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,macinetosh 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 Conrol 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. Python Interpreter How to work in Python Visit : python.mykvs.in for regular updates 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) 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 flavours – 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/