SlideShare a Scribd company logo
Python Programming
Essential
Submitted by:-
Shiv Kaushik
2100820100145
Submitted To:-
Dr. Satendra Kumar
Ms. Prachi Agarwal
Introduction
Python is a general-purpose interpreted, interactive, object-
oriented, and high-level programming language. It was
created by Guido van Rossum during 1985- 1990. Like Perl,
Python source code is also available under the GNU
General Public License (GPL). This tutorial gives enough
understanding on Python programming language.
Python is a high-level, interpreted, interactive and object-
oriented scripting language. Python is designed to be highly
readable. It uses English keywords frequently where as
other languages use punctuation, and it has fewer
syntactical constructions than other languages.
Python is a MUST for students and working
professionals to become a great Software Engineer
specially when they are working in Web Development
Domain.
Python
Features
Easy-to-learn − Python has few keywords, simple structure, and a clearly defined
syntax. This allows the student to pick up the language quickly.
Easy-to-read − Python code is more clearly defined and visible to
the eyes.
Easy-to-maintain − Python's source code is fairly easy-to-
maintain.
A broad standard library − Python's bulk of the library is very portable and cross-platform
compatible on UNIX,
Windows, and Macintosh.
Interactive Mode − Python has support for an interactive mode which allows interactive
testing and debugging of snippets of code.
Portable − Python can run on a wide variety of hardware platforms and has the same
interface on all
platforms.
Extendable − You can add low-level modules to the Python interpreter. These modules
enable programmers to add to or customize their tools to be more efficient.
Databases − Python provides interfaces to all major commercial databases.
GUI Programming − Python supports GUI applications that can be created and ported to
many system calls, libraries and windows systems, such as Windows MFC, Macintosh, and
the X Window system of Unix.
Scalable − Python provides a better structure and support for large programs than shell
scripting.
Python - Basic
Syntax
The Python language has many similarities to Perl, C, and
Java.
However, there are some definite differences between the
languages.
First Python Program
Let us execute programs in different modes of programming.
Interactive Mode Programming
Invoking the interpreter without passing a script file as a
parameter brings up the following prompt −
Type the following text at the Python prompt and press the
Enter −
>>> print(“hello world”)
And Enter
Output: hello world
PROJECT :
About
:
a program to create a number guessing game using
Python:
If the guessed number is lower than the randomly
selected number, the user will see “too low”. If the
guessed number is higher than the randomly selected
number, tTo create a guessing game, we need to write
a program to select a random number between 1 and
10. To give hints to the user, we can use conditional
statements to tell the user if the guessed number is
smaller, greater than or equal to the randomly selected
number.
So below is how you can write he user will see “too
high”.
When the user guesses the correct number, “you
.
Source Code:-
Govind.ppt.pptx

More Related Content

PPTX
Python Programming.pptx
Sandesh377175
 
PDF
Python Training in Chandigarh
Excellence Technology
 
PDF
What is Python ? Why its important ? Institute for Python Course.
Excellence Technology
 
PPTX
Machine learning session 1
NirsandhG
 
PDF
session5-Getting stated with Python.pdf
AyushDutta32
 
DOCX
Python Programming and ApplicationsUnit-1.docx
Manohar k
 
PPT
Python Programming Unit1_Aditya College of Engg & Tech
Ramanamurthy Banda
 
Python Programming.pptx
Sandesh377175
 
Python Training in Chandigarh
Excellence Technology
 
What is Python ? Why its important ? Institute for Python Course.
Excellence Technology
 
Machine learning session 1
NirsandhG
 
session5-Getting stated with Python.pdf
AyushDutta32
 
Python Programming and ApplicationsUnit-1.docx
Manohar k
 
Python Programming Unit1_Aditya College of Engg & Tech
Ramanamurthy Banda
 

Similar to Govind.ppt.pptx (20)

PPTX
637b4894085c4_ppt.pptx
Arjun123Bagri
 
PDF
THE ULTIMATE GUIDE ON PYTHON
robinkumar70125
 
PPTX
python programminig and introduction.pptx
urvashipundir04
 
PPTX
Python slide basic to advanced english tutorial
masukmia.com
 
PPTX
introduction to python in computer graphics.pptx
urvashipundir04
 
PDF
Python Programming Part 1.pdf
percivalfernandez2
 
PDF
Python Programming Part 1.pdf
percivalfernandez2
 
PDF
Python Programming Part 1.pdf
percivalfernandez2
 
PPTX
UNIT - I FIRST PRESENTATION - Copy networking in python.pptx
gargojas31
 
PDF
Introduction to Python
DrMohammed Qassim
 
PDF
Summer Training Project.pdf
Lovely professinal university
 
PPTX
INTRODUCTION-TO-PYTHON
RuchiNagar3
 
PDF
Web Programming UNIT VIII notes
Bhavsingh Maloth
 
DOCX
Python for Beginners.docx
AbhinavSharma309481
 
PDF
IRJET- Python: Simple though an Important Programming Language
IRJET Journal
 
PDF
Research paper on python by Rj
Shree M.L.Kakadiya MCA mahila college, Amreli
 
PPTX
Lecture 1.pptx
hemantmohite6
 
PPTX
Basic Python Introduction Lecture 1.pptx
Aditya Patel
 
PPTX
Python basic
radhikaadroja
 
637b4894085c4_ppt.pptx
Arjun123Bagri
 
THE ULTIMATE GUIDE ON PYTHON
robinkumar70125
 
python programminig and introduction.pptx
urvashipundir04
 
Python slide basic to advanced english tutorial
masukmia.com
 
introduction to python in computer graphics.pptx
urvashipundir04
 
Python Programming Part 1.pdf
percivalfernandez2
 
Python Programming Part 1.pdf
percivalfernandez2
 
Python Programming Part 1.pdf
percivalfernandez2
 
UNIT - I FIRST PRESENTATION - Copy networking in python.pptx
gargojas31
 
Introduction to Python
DrMohammed Qassim
 
Summer Training Project.pdf
Lovely professinal university
 
INTRODUCTION-TO-PYTHON
RuchiNagar3
 
Web Programming UNIT VIII notes
Bhavsingh Maloth
 
Python for Beginners.docx
AbhinavSharma309481
 
IRJET- Python: Simple though an Important Programming Language
IRJET Journal
 
Research paper on python by Rj
Shree M.L.Kakadiya MCA mahila college, Amreli
 
Lecture 1.pptx
hemantmohite6
 
Basic Python Introduction Lecture 1.pptx
Aditya Patel
 
Python basic
radhikaadroja
 
Ad

Recently uploaded (20)

PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PPTX
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
PPTX
MET 305 MODULE 1 KTU 2019 SCHEME 25.pptx
VinayB68
 
PDF
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
PPTX
easa module 3 funtamental electronics.pptx
tryanothert7
 
PPTX
EE3303-EM-I 25.7.25 electrical machines.pptx
Nagen87
 
PDF
Top 10 read articles In Managing Information Technology.pdf
IJMIT JOURNAL
 
PPTX
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
PDF
Principles of Food Science and Nutritions
Dr. Yogesh Kumar Kosariya
 
PPTX
Module_II_Data_Science_Project_Management.pptx
anshitanarain
 
PDF
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
PPTX
AgentX UiPath Community Webinar series - Delhi
RohitRadhakrishnan8
 
PDF
Activated Carbon for Water and Wastewater Treatment_ Integration of Adsorptio...
EmilianoRodriguezTll
 
PPTX
Fluid Mechanics, Module 3: Basics of Fluid Mechanics
Dr. Rahul Kumar
 
PPTX
TE-AI-Unit VI notes using planning model
swatigaikwad6389
 
PPTX
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
PDF
A Framework for Securing Personal Data Shared by Users on the Digital Platforms
ijcncjournal019
 
PDF
dse_final_merit_2025_26 gtgfffffcjjjuuyy
rushabhjain127
 
PDF
5 Influence line.pdf for structural engineers
Endalkazene
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
MET 305 MODULE 1 KTU 2019 SCHEME 25.pptx
VinayB68
 
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
easa module 3 funtamental electronics.pptx
tryanothert7
 
EE3303-EM-I 25.7.25 electrical machines.pptx
Nagen87
 
Top 10 read articles In Managing Information Technology.pdf
IJMIT JOURNAL
 
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
Principles of Food Science and Nutritions
Dr. Yogesh Kumar Kosariya
 
Module_II_Data_Science_Project_Management.pptx
anshitanarain
 
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
AgentX UiPath Community Webinar series - Delhi
RohitRadhakrishnan8
 
Activated Carbon for Water and Wastewater Treatment_ Integration of Adsorptio...
EmilianoRodriguezTll
 
Fluid Mechanics, Module 3: Basics of Fluid Mechanics
Dr. Rahul Kumar
 
TE-AI-Unit VI notes using planning model
swatigaikwad6389
 
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
A Framework for Securing Personal Data Shared by Users on the Digital Platforms
ijcncjournal019
 
dse_final_merit_2025_26 gtgfffffcjjjuuyy
rushabhjain127
 
5 Influence line.pdf for structural engineers
Endalkazene
 
Ad

Govind.ppt.pptx

  • 1. Python Programming Essential Submitted by:- Shiv Kaushik 2100820100145 Submitted To:- Dr. Satendra Kumar Ms. Prachi Agarwal
  • 2. Introduction Python is a general-purpose interpreted, interactive, object- oriented, and high-level programming language. It was created by Guido van Rossum during 1985- 1990. Like Perl, Python source code is also available under the GNU General Public License (GPL). This tutorial gives enough understanding on Python programming language. Python is a high-level, interpreted, interactive and object- oriented scripting language. Python is designed to be highly readable. It uses English keywords frequently where as other languages use punctuation, and it has fewer syntactical constructions than other languages. Python is a MUST for students and working professionals to become a great Software Engineer specially when they are working in Web Development Domain.
  • 3. Python Features Easy-to-learn − Python has few keywords, simple structure, and a clearly defined syntax. This allows the student to pick up the language quickly. Easy-to-read − Python code is more clearly defined and visible to the eyes. Easy-to-maintain − Python's source code is fairly easy-to- maintain. A broad standard library − Python's bulk of the library is very portable and cross-platform compatible on UNIX, Windows, and Macintosh. Interactive Mode − Python has support for an interactive mode which allows interactive testing and debugging of snippets of code. Portable − Python can run on a wide variety of hardware platforms and has the same interface on all platforms. Extendable − You can add low-level modules to the Python interpreter. These modules enable programmers to add to or customize their tools to be more efficient. Databases − Python provides interfaces to all major commercial databases. GUI Programming − Python supports GUI applications that can be created and ported to many system calls, libraries and windows systems, such as Windows MFC, Macintosh, and the X Window system of Unix. Scalable − Python provides a better structure and support for large programs than shell scripting.
  • 4. Python - Basic Syntax The Python language has many similarities to Perl, C, and Java. However, there are some definite differences between the languages. First Python Program Let us execute programs in different modes of programming. Interactive Mode Programming Invoking the interpreter without passing a script file as a parameter brings up the following prompt − Type the following text at the Python prompt and press the Enter − >>> print(“hello world”) And Enter Output: hello world
  • 6. About : a program to create a number guessing game using Python: If the guessed number is lower than the randomly selected number, the user will see “too low”. If the guessed number is higher than the randomly selected number, tTo create a guessing game, we need to write a program to select a random number between 1 and 10. To give hints to the user, we can use conditional statements to tell the user if the guessed number is smaller, greater than or equal to the randomly selected number. So below is how you can write he user will see “too high”. When the user guesses the correct number, “you