SlideShare a Scribd company logo
Python Programming
Language
By:
Dr. Abhinav Sharma
Department of EEE
UPES
Python
 Python is a high level programming language.
 Python is often described as a "batteries
included" language due to its comprehensive
standard library.
 It was introduced in 1991 by Guido van Rossum,
a Dutch computer programmer.
 The language places strong emphasis on code
reliability and simplicity so that the programmer
can develop applications rapidly.
 It is open-source.
 There are large number of programming language like
C, C++, Java, but when compared to all these
languages Python has simplest syntax.
 Python is a cross platform language which means that
the code written for one operating system like
windows will work equally well with Linux, MacOS
without any changes.
 Anaconda is a program that consists of python +
couple of python libraries. It also has it’s own
virtual environment and repository.
 Jupyter is a Python notebook ("interactive
python").
 Spyder is just an Integrated Development
Environment (IDE) for python.
 Google Colab notebook executes codes on
Google’s cloud server.
Anaconda
Software
JupyterLab is a web-based interactive development environment for Jupyter
notebooks, code, and data.
JupyterLab is flexible: configure and arrange the user interface to support a
wide range of workflows in data science, scientific computing, and machine
learning.
JupyterLab is extensible and modular: write plugins that add new components
and integrate with existing ones.
Spyder is an open source cross-platform integrated development environment
(IDE) for scientific programming in the Python Programming language.
It integrates with a number of prominent packages in the scientific Python
stack, including Numpy, SciPy, Matplotlib, Pandas as other open source
software.
Libraries Required for Machine
Learning in Python
• NumPy
• SciPy
• Pandas
• Matplotlib
• fbprophet
• TensorFlow
• Keras
• pylab
• Scikit-learn
Advantages of Python
 Most programs in Python require considerably
less number of lines of code to perform the same
task compared to other languages like C.
 Less Programming time and programming errors.
Basic datatypes in Python
 Number- Integers, floating point numbers and complex
numbers fall under Python numbers category. They are
defined by int, float, complex classes in Python. W can
use a type() function to know which class a variable or
value belongs to.
 String- Strings are sequences of character data. String
literals may be delimited using either single or double
quotes. A string in Python can contain as many
characters as you wish. The only limit is your machine’s
memory resources. A string can also be empty.
 List- It is an ordered sequence of items. It is one of the
most used datatype in Python and is very flexible. All the
items in a list do not need to be of the same type.
Declaring a list is pretty straight forward. Items separated
by commas are enclosed within brackets. For example- a
= [1, 2.2, 'python'].
 Tuple- It is an ordered sequence of items same as
a list. The only difference is that tuples are
immutable. Tuples once created cannot be
modified. Tuples are used to write-protect data and
are usually faster than lists as they cannot change
dynamically. It is defined within parenthesis ()
where items are separated by commas. Example:
a=(1,2,3+4j,’abc’)
We can use a slicing operator [] to extract an item
but we cannot change its value.
 Dictionary- Dictionary is an unordered collection of
key-value pairs. It is generally used when we have
a huge amount of data. Dictionaries are optimized
for retrieving data. We must know the key to
retrieve the value. In Python, dictionaries are
Python Libraries
 Numpy- It is a Python library which is used for
scientific computing. It contains among other things-a
powerful array object, mathematical and statistical
functions.
 Pandas- It is a software library written for the Python
programming language for data manipulation and
analysis. Pandas allows various data manipulation
operations such as merging, reshaping, selecting, as
well as data cleaning, and data wrangling features.
 Matplotlib-It is a plotting library for the Python
programming language which produces 2D plots to
render visualization and helps in exploring the data
sets. Matplotlib.pyplot is a collection of command
style functions that make matplotlib work like
MATLAB.
 Pylab- It is a procedural interface to the Matplotlib
object-oriented plotting library. Matplotlib is the
whole package; matplotlib.pyplot is a module in
Matplotlib; and PyLab is a module that gets
installed alongside Matplotlib. PyLab is a
convenience module that bulk imports
matplotlib.pyplot (for plotting) and NumPy (for
Mathematics and working with arrays) in a single
name space.
 Scikit-learn (sklearn)- It is a machine learning
library for the Python programming language. It
contains various classification, regression and
clustering algorithms. Built on NumPy, Scipy and
matplotlib, it is designed to interpolate smoothly
between the libraries.
Python io module
 Python io module allows us to manage the file
related input-output operations.
 The scipy.optimize package provides several
commonly used optimization algorithms.
The scipy.optimize package provides several commonly used optimization algorithms.

More Related Content

Similar to Introduction_to_Python.pptx (20)

PDF
summer training report on python
Shubham Yadav
 
PPTX
python programming unit 1 wala ppt .pptx
AnaIyer1
 
PPTX
Lecture1_introduction to python.pptx
MohammedAlYemeni1
 
PPTX
IoT Heaps 4
SushrutaMishra1
 
PPTX
Python Demo.pptx
ParveenShaik21
 
PPTX
Python Demo.pptx
ParveenShaik21
 
PPTX
Python short notes on modules and applications
ssuseree48e0
 
PPTX
this includes basics about python modules and packages introduction
ssuseree48e0
 
PPTX
Intro to Python
Eugene Petrusha
 
PPTX
Data Science Using Python.pptx
Sarkunavathi Aribal
 
PDF
Python for scientific computing
Go Asgard
 
PPTX
intro to python.pptx
UpasnaSharma37
 
PPTX
Introduction to Python Basics for PSSE Integration
FarhanKhan978284
 
PPTX
Artificial Intelligence concepts in a Nutshell
kannanalagu1
 
PDF
business analytic meeting 1 tunghai university.pdf
Anggi Andriyadi
 
PDF
Py tut-handout
Ramachandra Dama
 
PDF
Programming RPi for IoT Applications.pdf
rakeshk213994
 
PPTX
python introduction initial lecture unit1.pptx
ChandraPrakash715640
 
PDF
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Edureka!
 
PPTX
overview of python programming language.pptx
dmsidharth
 
summer training report on python
Shubham Yadav
 
python programming unit 1 wala ppt .pptx
AnaIyer1
 
Lecture1_introduction to python.pptx
MohammedAlYemeni1
 
IoT Heaps 4
SushrutaMishra1
 
Python Demo.pptx
ParveenShaik21
 
Python Demo.pptx
ParveenShaik21
 
Python short notes on modules and applications
ssuseree48e0
 
this includes basics about python modules and packages introduction
ssuseree48e0
 
Intro to Python
Eugene Petrusha
 
Data Science Using Python.pptx
Sarkunavathi Aribal
 
Python for scientific computing
Go Asgard
 
intro to python.pptx
UpasnaSharma37
 
Introduction to Python Basics for PSSE Integration
FarhanKhan978284
 
Artificial Intelligence concepts in a Nutshell
kannanalagu1
 
business analytic meeting 1 tunghai university.pdf
Anggi Andriyadi
 
Py tut-handout
Ramachandra Dama
 
Programming RPi for IoT Applications.pdf
rakeshk213994
 
python introduction initial lecture unit1.pptx
ChandraPrakash715640
 
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Edureka!
 
overview of python programming language.pptx
dmsidharth
 

Recently uploaded (20)

PDF
WEF_Future_of_Global_Fintech_Second_Edition_2025.pdf
AproximacionAlFuturo
 
PDF
apidays Helsinki & North 2025 - How (not) to run a Graphql Stewardship Group,...
apidays
 
DOC
MATRIX_AMAN IRAWAN_20227479046.docbbbnnb
vanitafiani1
 
PPTX
GenAI-Introduction-to-Copilot-for-Bing-March-2025-FOR-HUB.pptx
cleydsonborges1
 
PPTX
Rocket-Launched-PowerPoint-Template.pptx
Arden31
 
PDF
Product Management in HealthTech (Case Studies from SnappDoctor)
Hamed Shams
 
PDF
How to Avoid 7 Costly Mainframe Migration Mistakes
JP Infra Pvt Ltd
 
PDF
OPPOTUS - Malaysias on Malaysia 1Q2025.pdf
Oppotus
 
PDF
Building Production-Ready AI Agents with LangGraph.pdf
Tamanna
 
PPT
01 presentation finyyyal معهد معايره.ppt
eltohamym057
 
PPTX
apidays Munich 2025 - Building Telco-Aware Apps with Open Gateway APIs, Subhr...
apidays
 
PPT
Lecture 2-1.ppt at a higher learning institution such as the university of Za...
rachealhantukumane52
 
PDF
R Cookbook - Processing and Manipulating Geological spatial data with R.pdf
OtnielSimopiaref2
 
PDF
Web Scraping with Google Gemini 2.0 .pdf
Tamanna
 
PPTX
apidays Helsinki & North 2025 - Vero APIs - Experiences of API development in...
apidays
 
PPTX
Exploring Multilingual Embeddings for Italian Semantic Search: A Pretrained a...
Sease
 
PPTX
Human-Action-Recognition-Understanding-Behavior.pptx
nreddyjanga
 
PPTX
Climate Action.pptx action plan for climate
justfortalabat
 
PDF
apidays Helsinki & North 2025 - REST in Peace? Hunting the Dominant Design fo...
apidays
 
PPTX
Advanced_NLP_with_Transformers_PPT_final 50.pptx
Shiwani Gupta
 
WEF_Future_of_Global_Fintech_Second_Edition_2025.pdf
AproximacionAlFuturo
 
apidays Helsinki & North 2025 - How (not) to run a Graphql Stewardship Group,...
apidays
 
MATRIX_AMAN IRAWAN_20227479046.docbbbnnb
vanitafiani1
 
GenAI-Introduction-to-Copilot-for-Bing-March-2025-FOR-HUB.pptx
cleydsonborges1
 
Rocket-Launched-PowerPoint-Template.pptx
Arden31
 
Product Management in HealthTech (Case Studies from SnappDoctor)
Hamed Shams
 
How to Avoid 7 Costly Mainframe Migration Mistakes
JP Infra Pvt Ltd
 
OPPOTUS - Malaysias on Malaysia 1Q2025.pdf
Oppotus
 
Building Production-Ready AI Agents with LangGraph.pdf
Tamanna
 
01 presentation finyyyal معهد معايره.ppt
eltohamym057
 
apidays Munich 2025 - Building Telco-Aware Apps with Open Gateway APIs, Subhr...
apidays
 
Lecture 2-1.ppt at a higher learning institution such as the university of Za...
rachealhantukumane52
 
R Cookbook - Processing and Manipulating Geological spatial data with R.pdf
OtnielSimopiaref2
 
Web Scraping with Google Gemini 2.0 .pdf
Tamanna
 
apidays Helsinki & North 2025 - Vero APIs - Experiences of API development in...
apidays
 
Exploring Multilingual Embeddings for Italian Semantic Search: A Pretrained a...
Sease
 
Human-Action-Recognition-Understanding-Behavior.pptx
nreddyjanga
 
Climate Action.pptx action plan for climate
justfortalabat
 
apidays Helsinki & North 2025 - REST in Peace? Hunting the Dominant Design fo...
apidays
 
Advanced_NLP_with_Transformers_PPT_final 50.pptx
Shiwani Gupta
 
Ad

Introduction_to_Python.pptx

  • 1. Python Programming Language By: Dr. Abhinav Sharma Department of EEE UPES
  • 2. Python  Python is a high level programming language.  Python is often described as a "batteries included" language due to its comprehensive standard library.  It was introduced in 1991 by Guido van Rossum, a Dutch computer programmer.  The language places strong emphasis on code reliability and simplicity so that the programmer can develop applications rapidly.  It is open-source.
  • 3.  There are large number of programming language like C, C++, Java, but when compared to all these languages Python has simplest syntax.  Python is a cross platform language which means that the code written for one operating system like windows will work equally well with Linux, MacOS without any changes.
  • 4.  Anaconda is a program that consists of python + couple of python libraries. It also has it’s own virtual environment and repository.  Jupyter is a Python notebook ("interactive python").  Spyder is just an Integrated Development Environment (IDE) for python.  Google Colab notebook executes codes on Google’s cloud server.
  • 6. JupyterLab is a web-based interactive development environment for Jupyter notebooks, code, and data. JupyterLab is flexible: configure and arrange the user interface to support a wide range of workflows in data science, scientific computing, and machine learning. JupyterLab is extensible and modular: write plugins that add new components and integrate with existing ones.
  • 7. Spyder is an open source cross-platform integrated development environment (IDE) for scientific programming in the Python Programming language. It integrates with a number of prominent packages in the scientific Python stack, including Numpy, SciPy, Matplotlib, Pandas as other open source software.
  • 8. Libraries Required for Machine Learning in Python • NumPy • SciPy • Pandas • Matplotlib • fbprophet • TensorFlow • Keras • pylab • Scikit-learn
  • 9. Advantages of Python  Most programs in Python require considerably less number of lines of code to perform the same task compared to other languages like C.  Less Programming time and programming errors.
  • 10. Basic datatypes in Python  Number- Integers, floating point numbers and complex numbers fall under Python numbers category. They are defined by int, float, complex classes in Python. W can use a type() function to know which class a variable or value belongs to.  String- Strings are sequences of character data. String literals may be delimited using either single or double quotes. A string in Python can contain as many characters as you wish. The only limit is your machine’s memory resources. A string can also be empty.  List- It is an ordered sequence of items. It is one of the most used datatype in Python and is very flexible. All the items in a list do not need to be of the same type. Declaring a list is pretty straight forward. Items separated by commas are enclosed within brackets. For example- a = [1, 2.2, 'python'].
  • 11.  Tuple- It is an ordered sequence of items same as a list. The only difference is that tuples are immutable. Tuples once created cannot be modified. Tuples are used to write-protect data and are usually faster than lists as they cannot change dynamically. It is defined within parenthesis () where items are separated by commas. Example: a=(1,2,3+4j,’abc’) We can use a slicing operator [] to extract an item but we cannot change its value.  Dictionary- Dictionary is an unordered collection of key-value pairs. It is generally used when we have a huge amount of data. Dictionaries are optimized for retrieving data. We must know the key to retrieve the value. In Python, dictionaries are
  • 12. Python Libraries  Numpy- It is a Python library which is used for scientific computing. It contains among other things-a powerful array object, mathematical and statistical functions.  Pandas- It is a software library written for the Python programming language for data manipulation and analysis. Pandas allows various data manipulation operations such as merging, reshaping, selecting, as well as data cleaning, and data wrangling features.  Matplotlib-It is a plotting library for the Python programming language which produces 2D plots to render visualization and helps in exploring the data sets. Matplotlib.pyplot is a collection of command style functions that make matplotlib work like MATLAB.
  • 13.  Pylab- It is a procedural interface to the Matplotlib object-oriented plotting library. Matplotlib is the whole package; matplotlib.pyplot is a module in Matplotlib; and PyLab is a module that gets installed alongside Matplotlib. PyLab is a convenience module that bulk imports matplotlib.pyplot (for plotting) and NumPy (for Mathematics and working with arrays) in a single name space.  Scikit-learn (sklearn)- It is a machine learning library for the Python programming language. It contains various classification, regression and clustering algorithms. Built on NumPy, Scipy and matplotlib, it is designed to interpolate smoothly between the libraries.
  • 14. Python io module  Python io module allows us to manage the file related input-output operations.  The scipy.optimize package provides several commonly used optimization algorithms. The scipy.optimize package provides several commonly used optimization algorithms.