SlideShare a Scribd company logo
1 of 15
PYHTON PROGRAMMING
ECE - I SEMESTER
D. Khalandar Basha
What about Python?
 Is it Functional Programming language? (OR)
 Is it Object Oriented Programming language? (OR)
 Is it Scripting Language?
 While developing Python, Guido Van Rossum borrowed -
Functional programming features from C Object Oriented
Programming features from C++ (Because, Java was not
developed at that time) Scripting language features from Perl,
Shell Script.
 So, Python is considered as All Rounder. Python can enjoy the
benefits of all types of programming language paradigms
Python as All Rounder
 C --> Procedural/Functional Programming Language
 C++, Java --> Object Oriented Programming Languages
 Perl, Shell Script ---> Scripting Languages
 Every Programming language having it's own specific behaviour,
that specific pradigm benefits only they are going to get
Features of Python Language
 Simple and easy to learn
 Freeware and Open Source
 High Level Programming Language
 Platform Independent
 Portability
 Dynamically Typed
 Python is both Procedure oriented and Object oriented
 Interpreted
 Extensible
 Extensive Library
Features of Python Language
 The code written in python is automatically compiled to byte
code and executed.
 Extending python with C or C++.
 Python supports lot of features such as nested code blocks,
functions, classes, modules and packages.
 Python is an object-oriented programming language.
 It has many built-in data types: strings, lists, tuples,
dictionaries, etc.,
 It supports control statements such as if, if-else, if-eif-else,
while, iterative for, etc.,
 It has functions, classes, modules and packages.
Features of Python Language
 Simple
 Easy to learn
 Open source
 High level language
 Dynamically typed
 Platform independent
 Portable
 Procedure and object oriented
Python application areas
 For developing Desktop Applications
The Applications which are running on a single systems (i.e., Stand
alone applications) Eg: Simple Calculator application
 For developing Web Applications
Eg: Gmail Application, Online E-commerce applications, Facebook
application, Blog applications etc.,
 For Network Applications
Eg: Chatting applications, Client-Server applicataions etc.,
 For Games development
 For Data Analysis Applications
Python application areas
 For Machine Learning applications
 For developing Artificial Intelligence, Deep Learning,
Neural Network Applications.
 For IOT
 For Data Sciene
That's why Python is called as General Purpose Programming
Language.
GETTING STARTED WITH PYTHON
There are three ways of staring python:
 Running a script written in python. -> text editor requires
 Using Graphical user interface (GUI) from an Integrated
Development environment (IDE) -> GUI application
 Employing an interactive approach -> command line
interpreter
GETTING STARTED WITH PYTHON
 Once python starts, you can see the interpreter startup
message, indication version and platform.
 You can also be given the python interpreter prompt,
ie., “>>>” which is also known as python chevron prompt.
 The “>>>” indicates that python interpreter is waiting for
an expression or command.
 The interacting environment where we are interaction
with the Python interpreter is called the console or
command shell.
INTERACTIVE PROMPT
 The interactive prompt runs code and echoes results but it
does not save code in a file.
 We cannot do the group of statements together.
 The interactive prompt is perfect place to experiment with the
language
Example:
Interactive Python Console
>>> 5
5
>>> 5.5
5.5
>>> ""hello”
hello
IDLE USER INTERFACE
 IDLE is a graphical user interface for doing Python
development, and is a standard and free part of the Python
system.
 In short, IDLE is a GUI that lets you edit, run, browse, and
debug Python programs, all from a single interface.
 Moreover, because IDLE is a Python program that uses the
Tkinter GUI tool kit
 It runs portably on most Python platforms: MSWindows,
Xwindows (Unix, Linux), and Macs.
 For many, IDLE is an easy – to – use alternative to typing
command lines, and a less problem – prone alternative to
clicking on icons.
Interactive Mode
Script Mode
In this mode, user types a set of statements called a program
in a file and then save the program with ‘filename.py’ as
extension.
Then the interpreter is used to execute the file contents. This
mode is convenient when the user wants to write and save
multiple lines of code, so that it can be easily modifiable and
reusable.
Python Shell as a Simple Calculator

More Related Content

Similar to 637b4894085c4_ppt.pptx

Basic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptxBasic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptxAditya Patel
 
Programming in python in detail concept .pptx
Programming in python in detail concept .pptxProgramming in python in detail concept .pptx
Programming in python in detail concept .pptxKavitha713564
 
PYTHON TUTORIALS.pptx
PYTHON TUTORIALS.pptxPYTHON TUTORIALS.pptx
PYTHON TUTORIALS.pptxEzatIlman1
 
introduction to Python (for beginners)
introduction to Python (for beginners)introduction to Python (for beginners)
introduction to Python (for beginners)guobichrng
 
IRJET- Python: Simple though an Important Programming Language
IRJET- Python: Simple though an Important Programming LanguageIRJET- Python: Simple though an Important Programming Language
IRJET- Python: Simple though an Important Programming LanguageIRJET Journal
 
Python Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & TechPython Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & TechRamanamurthy Banda
 
POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE teachersduniya.com
 
Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)Rr
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1Kanchilug
 
Introduction to python for Beginners
Introduction to python for Beginners Introduction to python for Beginners
Introduction to python for Beginners Sujith Kumar
 
2018 20 best id es for python programming
2018 20 best id es for python programming2018 20 best id es for python programming
2018 20 best id es for python programmingSyedBrothersRealEsta
 
20 best ide's for python programming in 2018
 20 best ide's for python programming in 2018 20 best ide's for python programming in 2018
20 best ide's for python programming in 2018Qamar Abbas
 
Python-00 | Introduction and installing
Python-00 | Introduction and installingPython-00 | Introduction and installing
Python-00 | Introduction and installingMohd Sajjad
 

Similar to 637b4894085c4_ppt.pptx (20)

Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
Basic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptxBasic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptx
 
Python Training in Chandigarh
Python Training in ChandigarhPython Training in Chandigarh
Python Training in Chandigarh
 
Programming in python in detail concept .pptx
Programming in python in detail concept .pptxProgramming in python in detail concept .pptx
Programming in python in detail concept .pptx
 
Govind.ppt.pptx
Govind.ppt.pptxGovind.ppt.pptx
Govind.ppt.pptx
 
PYTHON TUTORIALS.pptx
PYTHON TUTORIALS.pptxPYTHON TUTORIALS.pptx
PYTHON TUTORIALS.pptx
 
introduction to Python (for beginners)
introduction to Python (for beginners)introduction to Python (for beginners)
introduction to Python (for beginners)
 
Introduction To Python
Introduction To PythonIntroduction To Python
Introduction To Python
 
Research paper on python by Rj
Research paper on python by RjResearch paper on python by Rj
Research paper on python by Rj
 
Python
PythonPython
Python
 
IRJET- Python: Simple though an Important Programming Language
IRJET- Python: Simple though an Important Programming LanguageIRJET- Python: Simple though an Important Programming Language
IRJET- Python: Simple though an Important Programming Language
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
 
Python Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & TechPython Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & Tech
 
POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE
 
Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1
 
Introduction to python for Beginners
Introduction to python for Beginners Introduction to python for Beginners
Introduction to python for Beginners
 
2018 20 best id es for python programming
2018 20 best id es for python programming2018 20 best id es for python programming
2018 20 best id es for python programming
 
20 best ide's for python programming in 2018
 20 best ide's for python programming in 2018 20 best ide's for python programming in 2018
20 best ide's for python programming in 2018
 
Python-00 | Introduction and installing
Python-00 | Introduction and installingPython-00 | Introduction and installing
Python-00 | Introduction and installing
 

Recently uploaded

BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsMehedi Hasan Shohan
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?Watsoo Telematics
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningVitsRangannavar
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 

Recently uploaded (20)

BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software Solutions
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learning
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 

637b4894085c4_ppt.pptx

  • 1. PYHTON PROGRAMMING ECE - I SEMESTER D. Khalandar Basha
  • 2. What about Python?  Is it Functional Programming language? (OR)  Is it Object Oriented Programming language? (OR)  Is it Scripting Language?  While developing Python, Guido Van Rossum borrowed - Functional programming features from C Object Oriented Programming features from C++ (Because, Java was not developed at that time) Scripting language features from Perl, Shell Script.  So, Python is considered as All Rounder. Python can enjoy the benefits of all types of programming language paradigms
  • 3. Python as All Rounder  C --> Procedural/Functional Programming Language  C++, Java --> Object Oriented Programming Languages  Perl, Shell Script ---> Scripting Languages  Every Programming language having it's own specific behaviour, that specific pradigm benefits only they are going to get
  • 4. Features of Python Language  Simple and easy to learn  Freeware and Open Source  High Level Programming Language  Platform Independent  Portability  Dynamically Typed  Python is both Procedure oriented and Object oriented  Interpreted  Extensible  Extensive Library
  • 5. Features of Python Language  The code written in python is automatically compiled to byte code and executed.  Extending python with C or C++.  Python supports lot of features such as nested code blocks, functions, classes, modules and packages.  Python is an object-oriented programming language.  It has many built-in data types: strings, lists, tuples, dictionaries, etc.,  It supports control statements such as if, if-else, if-eif-else, while, iterative for, etc.,  It has functions, classes, modules and packages.
  • 6. Features of Python Language  Simple  Easy to learn  Open source  High level language  Dynamically typed  Platform independent  Portable  Procedure and object oriented
  • 7. Python application areas  For developing Desktop Applications The Applications which are running on a single systems (i.e., Stand alone applications) Eg: Simple Calculator application  For developing Web Applications Eg: Gmail Application, Online E-commerce applications, Facebook application, Blog applications etc.,  For Network Applications Eg: Chatting applications, Client-Server applicataions etc.,  For Games development  For Data Analysis Applications
  • 8. Python application areas  For Machine Learning applications  For developing Artificial Intelligence, Deep Learning, Neural Network Applications.  For IOT  For Data Sciene That's why Python is called as General Purpose Programming Language.
  • 9. GETTING STARTED WITH PYTHON There are three ways of staring python:  Running a script written in python. -> text editor requires  Using Graphical user interface (GUI) from an Integrated Development environment (IDE) -> GUI application  Employing an interactive approach -> command line interpreter
  • 10. GETTING STARTED WITH PYTHON  Once python starts, you can see the interpreter startup message, indication version and platform.  You can also be given the python interpreter prompt, ie., “>>>” which is also known as python chevron prompt.  The “>>>” indicates that python interpreter is waiting for an expression or command.  The interacting environment where we are interaction with the Python interpreter is called the console or command shell.
  • 11. INTERACTIVE PROMPT  The interactive prompt runs code and echoes results but it does not save code in a file.  We cannot do the group of statements together.  The interactive prompt is perfect place to experiment with the language Example: Interactive Python Console >>> 5 5 >>> 5.5 5.5 >>> ""hello” hello
  • 12. IDLE USER INTERFACE  IDLE is a graphical user interface for doing Python development, and is a standard and free part of the Python system.  In short, IDLE is a GUI that lets you edit, run, browse, and debug Python programs, all from a single interface.  Moreover, because IDLE is a Python program that uses the Tkinter GUI tool kit  It runs portably on most Python platforms: MSWindows, Xwindows (Unix, Linux), and Macs.  For many, IDLE is an easy – to – use alternative to typing command lines, and a less problem – prone alternative to clicking on icons.
  • 14. Script Mode In this mode, user types a set of statements called a program in a file and then save the program with ‘filename.py’ as extension. Then the interpreter is used to execute the file contents. This mode is convenient when the user wants to write and save multiple lines of code, so that it can be easily modifiable and reusable.
  • 15. Python Shell as a Simple Calculator