SlideShare a Scribd company logo
1 of 24
Download to read offline
Introduction to Python Programming
Course learning objectives
1. To understand the basics Python language
2.
To learn to solve problems using Python basics of Data expression and Statements
CONTENTS
Unit I Introduction to Python Programming
Unit II How to use IDLE to develop programs:
Unit III How to write your first programs:
Unit IV To write a program to calculate reactions of different types of beams with
different loading and supporting conditions. Examples
Unit V To write program to calculate and draw SFD and BMS of different types of
beams with different loading and supporting conditions. Examples
INTRODUCTION
Programming is writing computer code to create a
program, in order to solve a problem. Programs
consist of a series of instructions to tell a computer
exactly what to do and how to do it.
A programming language is a vocabulary and set of
grammatical rules for instructing a computer or
computing device to perform specific tasks.
What is Python?
Python is a popular programming language.
It was created by Guido van Rossum, of Netherland
and released in 1991.
It is used for:
•web development (server-side),
•software development,
•mathematics,
•system scripting. etc
1. Python can be used on a server to create web applications.
Eg of Web Applications:
Social Media Platform: Facebook, Instagram, Twitter etc
E-Commerce Websites: Amazon, Flipkart, Meesho etc
Educational Platforms: Courseera, Moodle
Online Gaming: Fortnite, World of Warcraft, and Minecraft
Chat and Messaging Apps : Whatsapp Web
What can Python do?
2. Python can be used alongside software to create workflows.
Eg: Image Processing, Financial and Quantitative Analysis, Language Processing etc
3. Python can connect to database systems. It can also read and modify files.
4. Python can be used to handle big data and perform complex mathematics.
5. Python can be used for rapid prototyping, or for production-ready software
development.
Why Python is a great first language?
• Python has a simple syntax that's easier to read and use than most other languages.
⚫ Python has most of the features of traditional programming languages. As a result, you can
use Python to learn the concepts and skills that apply to those languages too.
⚫ Python supports the development of a wide range of programs, including games, web
applications, and system administration.
• Python is used by many successful companies, including Google, IBM, Disney, and EA
Games. As a result, knowing Python is a valuable skill.
Python is open source. There are many advantages to being open source.
THREE TYPES OF PYTHON APPLICATIONS
An application, or app, is a computer software that perform a task or related set of tasks.
A console application is a desktop application that uses the Console to interact with the
user
The first type is a console application. In this type of application, you enter commands at
the command prompt in the console that's available from your operating system.(In this
case, a console application is being run on a Windows system. As a result, it uses the
Command Prompt window that's available from Windows.
On a Mac OS X system, though, a console application runs in the Terminal window.
Because console applications are the easiest type of application to develop, you'll work
with console applications in the first three sections of this book
A GUI application is an application that uses s Graphical User Interface to interact with
the user
The second type of Python application is a GUI application. That's an
application that has a graphical user interface (GUI).
In this figure, the GUI application performs the same tasks as the console
application In other words, it gets the same input from the user, performs the
same calculation, and displays the same result. However, the GUI application
is more user-friendly and intuitive
A web application typically gets requests from a web browser, processes them on a
web server, and returns the responses to the web browser
The third type of application shown in this figure is a web application.)Unlike a
desktop application, which runs directly on your computer, a web application
can be called by a web browser that's running on a computer or mobile device
and can use a server to process or store data)
In this figure, the web application performs the same task as the console and
GUI applications)
How Python compiles and runs source code
Step 1: The programmer uses a text editor or
IDE to enter and edit the source code. Then,
the programmer saves the source code to a file
with a .py extension.
Step 2 : The source code is compiled by the
Python interpreter into bytecode.
Step 3: The bytecode is translated by the
Python virtual machine into instructions that
can interact with the operating system
of the computer.
DESCRIPTION:
Although this procedure is complicated, it runs behind the scenes when
you're developing Python programs. As a result, it's mostly invisible to the
developer.
Python bytecode can be run on any operating system that has a Python
virtual machine. That's why Python is said to be platform-independent.
If the program imports modules, the Python interpreter saves the compiled
bytecode for those modules in files that have .pyc or pyo extensions. This
is an import optimization that can improve the startup time for a program.
HOW DISK STORAGE AND MAIN MEMORY WORK TOGETHER
MAIN MEMORY AND DISK STORAGE AS AN APPLICATION RUNS
Operating System
The application that's running
The data for the application
System Storage
Application software
Application data
Main Memory Disk Storage
How disk storage and main memory work together
 When you start the computer, it loads the operating system into main memory. Then, you use the features
of the operating system to start an application..
 When you start an application, the operating system loads it into main memory. Then, it runs the
application.
 As the application runs, it may read data from disk storage into main memory orwrite data from main
memory to disk storage
.DESCRIPTION:
 The system software for a computer provides all of the software that is needed
for running the applications, including the operating system. •
 The applications software consists of the applications that are available on the
system.
 A computer consists of a CPU (Central Processing Unit) and main memory, also
known as RAM (Random Access Memory).
 The data in main memory is lost when an application ends. Disk storage is used
for persistent data storage which remains after an application ends.•
 Main memory and disk storage are commonly measured in megabytes (MB) and
THANK YOU

More Related Content

Similar to Introduction to Python

Python Tutorial | Python Programming Language
Python Tutorial | Python Programming LanguagePython Tutorial | Python Programming Language
Python Tutorial | Python Programming Languageanaveenkumar4
 
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON Nandakumar P
 
A Comprehensive Guide to App Development with Python - AppsDevPro
A Comprehensive Guide to App Development with Python - AppsDevProA Comprehensive Guide to App Development with Python - AppsDevPro
A Comprehensive Guide to App Development with Python - AppsDevProSofiaCarter4
 
Simple calulator using GUI tkinter.pptx
Simple calulator using GUI tkinter.pptxSimple calulator using GUI tkinter.pptx
Simple calulator using GUI tkinter.pptxYashSharma357857
 
A complete guide to Python app development.pdf
A complete guide to Python app development.pdfA complete guide to Python app development.pdf
A complete guide to Python app development.pdfMoonTechnolabsPvtLtd
 
INTRODUCTION-TO-PYTHON
INTRODUCTION-TO-PYTHONINTRODUCTION-TO-PYTHON
INTRODUCTION-TO-PYTHONRuchiNagar3
 
Python tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academyPython tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academyTIB Academy
 
Types of Applications That Can Be Built Using The Python App Development Fram...
Types of Applications That Can Be Built Using The Python App Development Fram...Types of Applications That Can Be Built Using The Python App Development Fram...
Types of Applications That Can Be Built Using The Python App Development Fram...Moon Technolabs Pvt. Ltd.
 
Why Python in required in Civil Engineering
Why Python in required in Civil EngineeringWhy Python in required in Civil Engineering
Why Python in required in Civil EngineeringRushikesh Kolhe
 
Type of apps that can be developed using python
Type of apps that can be developed using pythonType of apps that can be developed using python
Type of apps that can be developed using pythonSemidot Infotech
 
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 TUTORIALS.pptx
PYTHON TUTORIALS.pptxPYTHON TUTORIALS.pptx
PYTHON TUTORIALS.pptxEzatIlman1
 
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
 
python programming.pptx
python programming.pptxpython programming.pptx
python programming.pptxKaviya452563
 
Phython Programming Language
Phython Programming LanguagePhython Programming Language
Phython Programming LanguageR.h. Himel
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1Kanchilug
 
POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE teachersduniya.com
 

Similar to Introduction to Python (20)

Python Tutorial | Python Programming Language
Python Tutorial | Python Programming LanguagePython Tutorial | Python Programming Language
Python Tutorial | Python Programming Language
 
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
 
Research paper on python by Rj
Research paper on python by RjResearch paper on python by Rj
Research paper on python by Rj
 
A Comprehensive Guide to App Development with Python - AppsDevPro
A Comprehensive Guide to App Development with Python - AppsDevProA Comprehensive Guide to App Development with Python - AppsDevPro
A Comprehensive Guide to App Development with Python - AppsDevPro
 
Simple calulator using GUI tkinter.pptx
Simple calulator using GUI tkinter.pptxSimple calulator using GUI tkinter.pptx
Simple calulator using GUI tkinter.pptx
 
A complete guide to Python app development.pdf
A complete guide to Python app development.pdfA complete guide to Python app development.pdf
A complete guide to Python app development.pdf
 
INTRODUCTION-TO-PYTHON
INTRODUCTION-TO-PYTHONINTRODUCTION-TO-PYTHON
INTRODUCTION-TO-PYTHON
 
Python basic
Python basicPython basic
Python basic
 
Python tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academyPython tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academy
 
Types of Applications That Can Be Built Using The Python App Development Fram...
Types of Applications That Can Be Built Using The Python App Development Fram...Types of Applications That Can Be Built Using The Python App Development Fram...
Types of Applications That Can Be Built Using The Python App Development Fram...
 
Why Python in required in Civil Engineering
Why Python in required in Civil EngineeringWhy Python in required in Civil Engineering
Why Python in required in Civil Engineering
 
Type of apps that can be developed using python
Type of apps that can be developed using pythonType of apps that can be developed using python
Type of apps that can be developed using python
 
introduction to Python (for beginners)
introduction to Python (for beginners)introduction to Python (for beginners)
introduction to Python (for beginners)
 
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
 
PYTHON TUTORIALS.pptx
PYTHON TUTORIALS.pptxPYTHON TUTORIALS.pptx
PYTHON TUTORIALS.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
 
python programming.pptx
python programming.pptxpython programming.pptx
python programming.pptx
 
Phython Programming Language
Phython Programming LanguagePhython Programming Language
Phython Programming Language
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1
 
POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE
 

Recently uploaded

Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
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
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 

Recently uploaded (20)

Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
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
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 

Introduction to Python

  • 2. Course learning objectives 1. To understand the basics Python language 2. To learn to solve problems using Python basics of Data expression and Statements CONTENTS Unit I Introduction to Python Programming Unit II How to use IDLE to develop programs: Unit III How to write your first programs: Unit IV To write a program to calculate reactions of different types of beams with different loading and supporting conditions. Examples Unit V To write program to calculate and draw SFD and BMS of different types of beams with different loading and supporting conditions. Examples
  • 3.
  • 4.
  • 5.
  • 6. INTRODUCTION Programming is writing computer code to create a program, in order to solve a problem. Programs consist of a series of instructions to tell a computer exactly what to do and how to do it. A programming language is a vocabulary and set of grammatical rules for instructing a computer or computing device to perform specific tasks.
  • 7.
  • 8.
  • 9.
  • 10. What is Python? Python is a popular programming language. It was created by Guido van Rossum, of Netherland and released in 1991. It is used for: •web development (server-side), •software development, •mathematics, •system scripting. etc
  • 11. 1. Python can be used on a server to create web applications. Eg of Web Applications: Social Media Platform: Facebook, Instagram, Twitter etc E-Commerce Websites: Amazon, Flipkart, Meesho etc Educational Platforms: Courseera, Moodle Online Gaming: Fortnite, World of Warcraft, and Minecraft Chat and Messaging Apps : Whatsapp Web What can Python do?
  • 12. 2. Python can be used alongside software to create workflows. Eg: Image Processing, Financial and Quantitative Analysis, Language Processing etc 3. Python can connect to database systems. It can also read and modify files. 4. Python can be used to handle big data and perform complex mathematics. 5. Python can be used for rapid prototyping, or for production-ready software development.
  • 13. Why Python is a great first language? • Python has a simple syntax that's easier to read and use than most other languages. ⚫ Python has most of the features of traditional programming languages. As a result, you can use Python to learn the concepts and skills that apply to those languages too. ⚫ Python supports the development of a wide range of programs, including games, web applications, and system administration. • Python is used by many successful companies, including Google, IBM, Disney, and EA Games. As a result, knowing Python is a valuable skill. Python is open source. There are many advantages to being open source.
  • 14. THREE TYPES OF PYTHON APPLICATIONS An application, or app, is a computer software that perform a task or related set of tasks. A console application is a desktop application that uses the Console to interact with the user
  • 15. The first type is a console application. In this type of application, you enter commands at the command prompt in the console that's available from your operating system.(In this case, a console application is being run on a Windows system. As a result, it uses the Command Prompt window that's available from Windows. On a Mac OS X system, though, a console application runs in the Terminal window. Because console applications are the easiest type of application to develop, you'll work with console applications in the first three sections of this book
  • 16. A GUI application is an application that uses s Graphical User Interface to interact with the user
  • 17. The second type of Python application is a GUI application. That's an application that has a graphical user interface (GUI). In this figure, the GUI application performs the same tasks as the console application In other words, it gets the same input from the user, performs the same calculation, and displays the same result. However, the GUI application is more user-friendly and intuitive
  • 18. A web application typically gets requests from a web browser, processes them on a web server, and returns the responses to the web browser
  • 19. The third type of application shown in this figure is a web application.)Unlike a desktop application, which runs directly on your computer, a web application can be called by a web browser that's running on a computer or mobile device and can use a server to process or store data) In this figure, the web application performs the same task as the console and GUI applications)
  • 20. How Python compiles and runs source code Step 1: The programmer uses a text editor or IDE to enter and edit the source code. Then, the programmer saves the source code to a file with a .py extension. Step 2 : The source code is compiled by the Python interpreter into bytecode. Step 3: The bytecode is translated by the Python virtual machine into instructions that can interact with the operating system of the computer.
  • 21. DESCRIPTION: Although this procedure is complicated, it runs behind the scenes when you're developing Python programs. As a result, it's mostly invisible to the developer. Python bytecode can be run on any operating system that has a Python virtual machine. That's why Python is said to be platform-independent. If the program imports modules, the Python interpreter saves the compiled bytecode for those modules in files that have .pyc or pyo extensions. This is an import optimization that can improve the startup time for a program.
  • 22. HOW DISK STORAGE AND MAIN MEMORY WORK TOGETHER MAIN MEMORY AND DISK STORAGE AS AN APPLICATION RUNS Operating System The application that's running The data for the application System Storage Application software Application data Main Memory Disk Storage How disk storage and main memory work together  When you start the computer, it loads the operating system into main memory. Then, you use the features of the operating system to start an application..  When you start an application, the operating system loads it into main memory. Then, it runs the application.  As the application runs, it may read data from disk storage into main memory orwrite data from main memory to disk storage
  • 23. .DESCRIPTION:  The system software for a computer provides all of the software that is needed for running the applications, including the operating system. •  The applications software consists of the applications that are available on the system.  A computer consists of a CPU (Central Processing Unit) and main memory, also known as RAM (Random Access Memory).  The data in main memory is lost when an application ends. Disk storage is used for persistent data storage which remains after an application ends.•  Main memory and disk storage are commonly measured in megabytes (MB) and