SlideShare a Scribd company logo
1 of 12
Welcome to Python Programming
Simple, Easy to learn and most demanded
language across the world.
What is Python?
•Python is an interpreted & high-level programming language.
•Development started in the 1980’s by Guido van Rossum.
• Only became popular in the last decade or so.
• Python 3.x currently dominates, and Python 2.x is the past of
Python.
•Supports a multitude of programming paradigms.
• OOP, functional, procedural, logic, structured, etc.
• General purpose.
• Very comprehensive standard library includes numeric
modules, crypto services, OS interfaces, networking
modules, GUI support, development tools, etc.
Why to Learn Python?
Wait! I can do all these things using
other programming languages too! Then
why Python?
Impression
•Easy to learn.
• Supports quick development.
• Cross-platform.
• Open Source.
• Extensible.
• Embeddable.
• Large standard library and active community.
• Useful for a wide variety of applications.
How it Works?
•Compiler or Interpreter?
•The standard implementation of Python is interpreted.
• The interpreter translates Python code into bytecode,
and this bytecode is executed by the Python VM
(similar to Java).
• Two modes: normal and interactive.
• Normal mode: entire .py files are provided to the
interpreter.
• Interactive mode: read-eval-print loop (REPL) executes
statements piecewise.
Hello World Program
C Language
// Your First C Program
#include <stdio.h>
int main() {
printf("Hello, World!");
return 0;
}
Java Language
// Your First Java Program
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
Python Language
#Your 1st Python Program
print(“Hello World”)
Which Version to follow?
• F1: Division operator Eg. -7 / 5
• F2: I/O functions
• F3: str type
• F4: xrange() saves memory but doesn’t support
slicing
• F5: Error Handling
try:
trying_to_check_error
except NameError, err:
print err, 'Error Caused' # Would not work in
Python 3.x
• F6: modules
Python 3.10.0b4 is available". 10 July 2021.
BUT still the stable version is 3.9
1. Python Shell: An interactive interpreter. It
is pre available in Linux and Mac OS X
2. Script mode on cmd
3. IDE: Atom, IDLE , Jupyter, Spyder, etc.
Find out more at the PowerPoint Getting Started Center
Modes of running a Python Code
.py
Python
Shell
IDE
Script
mode
Some Fundamentals
• Whitespace is significant in Python. Where
other languages may use {} or (), Python uses
indentation to denote code blocks.
• Comments
• Single-line comments denoted by #.
• Multi-line comments begin and end with three “s.
• Typically, multi-line comments are meant for
documentation.
• Comments should express information that
cannot be expressed
in code – do not restate code.
# here’s a comment
for i in range(0,3):
print (i)
def myfunc():
"""here’s a comment about the
myfunc function”””"""
print(“I'm in a function!“)
Data Types & Operators in Python
Applications & Use Cases of Python
Welcome to Python Programming.pptx

More Related Content

Similar to Welcome to Python Programming.pptx

Introduction to Python Programming language.pptx
Introduction to Python Programming language.pptxIntroduction to Python Programming language.pptx
Introduction to Python Programming language.pptxBharathYusha1
 
Dr. Tanvi FOCP Unit-2 Session-1 PPT (Revised).pdf
Dr. Tanvi FOCP Unit-2 Session-1 PPT (Revised).pdfDr. Tanvi FOCP Unit-2 Session-1 PPT (Revised).pdf
Dr. Tanvi FOCP Unit-2 Session-1 PPT (Revised).pdfRahulSingh190790
 
Python programming
Python programmingPython programming
Python programmingMegha V
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1Kanchilug
 
Introduction to Python Programming Basics
Introduction  to  Python  Programming BasicsIntroduction  to  Python  Programming Basics
Introduction to Python Programming BasicsDhana malar
 
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 .pdfVaibhavKumarSinghkal
 
Session-1_Introduction to Python.pptx
Session-1_Introduction to Python.pptxSession-1_Introduction to Python.pptx
Session-1_Introduction to Python.pptxWajidAliHashmi2
 
Python | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python TutorialPython | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python TutorialQA TrainingHub
 
introduction to Python (for beginners)
introduction to Python (for beginners)introduction to Python (for beginners)
introduction to Python (for beginners)guobichrng
 
python classes in thane
python classes in thanepython classes in thane
python classes in thanefaizrashid1995
 
Python Applications by The Knowledge Academy.docx
Python Applications by The Knowledge Academy.docxPython Applications by The Knowledge Academy.docx
Python Applications by The Knowledge Academy.docxAbhinavSharma309481
 

Similar to Welcome to Python Programming.pptx (20)

Features of python.pptx
Features of python.pptxFeatures of python.pptx
Features of python.pptx
 
python-ppt.ppt
python-ppt.pptpython-ppt.ppt
python-ppt.ppt
 
python-ppt.ppt
python-ppt.pptpython-ppt.ppt
python-ppt.ppt
 
Python Introduction.ppt
Python Introduction.pptPython Introduction.ppt
Python Introduction.ppt
 
Introduction to Python Programming language.pptx
Introduction to Python Programming language.pptxIntroduction to Python Programming language.pptx
Introduction to Python Programming language.pptx
 
Dr. Tanvi FOCP Unit-2 Session-1 PPT (Revised).pdf
Dr. Tanvi FOCP Unit-2 Session-1 PPT (Revised).pdfDr. Tanvi FOCP Unit-2 Session-1 PPT (Revised).pdf
Dr. Tanvi FOCP Unit-2 Session-1 PPT (Revised).pdf
 
Python programming
Python programmingPython programming
Python programming
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1
 
Features of Python.pdf
Features of Python.pdfFeatures of Python.pdf
Features of Python.pdf
 
Introduction to Python Programming Basics
Introduction  to  Python  Programming BasicsIntroduction  to  Python  Programming Basics
Introduction to Python Programming Basics
 
Python for Beginners.docx
Python for Beginners.docxPython for Beginners.docx
Python for Beginners.docx
 
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
 
Session-1_Introduction to Python.pptx
Session-1_Introduction to Python.pptxSession-1_Introduction to Python.pptx
Session-1_Introduction to Python.pptx
 
Python | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python TutorialPython | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python Tutorial
 
introduction to Python (for beginners)
introduction to Python (for beginners)introduction to Python (for beginners)
introduction to Python (for beginners)
 
python classes in thane
python classes in thanepython classes in thane
python classes in thane
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
IPT 2.pptx
IPT 2.pptxIPT 2.pptx
IPT 2.pptx
 
Python Applications by The Knowledge Academy.docx
Python Applications by The Knowledge Academy.docxPython Applications by The Knowledge Academy.docx
Python Applications by The Knowledge Academy.docx
 
Python Programming Part 1.pdf
Python Programming Part 1.pdfPython Programming Part 1.pdf
Python Programming Part 1.pdf
 

More from UmmeSalmaM1

Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data ScienceUmmeSalmaM1
 
Role of digital technology in autism a case study
Role of digital technology in autism a case studyRole of digital technology in autism a case study
Role of digital technology in autism a case studyUmmeSalmaM1
 
Programming for data science in python
Programming for data science in pythonProgramming for data science in python
Programming for data science in pythonUmmeSalmaM1
 
Demography basedhybridrecommendersystemformovierecommendation
Demography basedhybridrecommendersystemformovierecommendationDemography basedhybridrecommendersystemformovierecommendation
Demography basedhybridrecommendersystemformovierecommendationUmmeSalmaM1
 
Datascience and python
Datascience and pythonDatascience and python
Datascience and pythonUmmeSalmaM1
 
Machine learning visual_quiz
Machine learning visual_quizMachine learning visual_quiz
Machine learning visual_quizUmmeSalmaM1
 
Lecture1 introduction to machine learning
Lecture1 introduction to machine learningLecture1 introduction to machine learning
Lecture1 introduction to machine learningUmmeSalmaM1
 
The Art of Entrepreneurship
The Art of Entrepreneurship The Art of Entrepreneurship
The Art of Entrepreneurship UmmeSalmaM1
 
Impact of Learning Functions on Prediction of Stock Data
Impact of Learning Functions on Prediction of Stock DataImpact of Learning Functions on Prediction of Stock Data
Impact of Learning Functions on Prediction of Stock DataUmmeSalmaM1
 

More from UmmeSalmaM1 (9)

Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Role of digital technology in autism a case study
Role of digital technology in autism a case studyRole of digital technology in autism a case study
Role of digital technology in autism a case study
 
Programming for data science in python
Programming for data science in pythonProgramming for data science in python
Programming for data science in python
 
Demography basedhybridrecommendersystemformovierecommendation
Demography basedhybridrecommendersystemformovierecommendationDemography basedhybridrecommendersystemformovierecommendation
Demography basedhybridrecommendersystemformovierecommendation
 
Datascience and python
Datascience and pythonDatascience and python
Datascience and python
 
Machine learning visual_quiz
Machine learning visual_quizMachine learning visual_quiz
Machine learning visual_quiz
 
Lecture1 introduction to machine learning
Lecture1 introduction to machine learningLecture1 introduction to machine learning
Lecture1 introduction to machine learning
 
The Art of Entrepreneurship
The Art of Entrepreneurship The Art of Entrepreneurship
The Art of Entrepreneurship
 
Impact of Learning Functions on Prediction of Stock Data
Impact of Learning Functions on Prediction of Stock DataImpact of Learning Functions on Prediction of Stock Data
Impact of Learning Functions on Prediction of Stock Data
 

Recently uploaded

"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 

Recently uploaded (20)

"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 

Welcome to Python Programming.pptx

  • 1. Welcome to Python Programming Simple, Easy to learn and most demanded language across the world.
  • 2. What is Python? •Python is an interpreted & high-level programming language. •Development started in the 1980’s by Guido van Rossum. • Only became popular in the last decade or so. • Python 3.x currently dominates, and Python 2.x is the past of Python. •Supports a multitude of programming paradigms. • OOP, functional, procedural, logic, structured, etc. • General purpose. • Very comprehensive standard library includes numeric modules, crypto services, OS interfaces, networking modules, GUI support, development tools, etc.
  • 3. Why to Learn Python? Wait! I can do all these things using other programming languages too! Then why Python?
  • 4. Impression •Easy to learn. • Supports quick development. • Cross-platform. • Open Source. • Extensible. • Embeddable. • Large standard library and active community. • Useful for a wide variety of applications.
  • 5. How it Works? •Compiler or Interpreter? •The standard implementation of Python is interpreted. • The interpreter translates Python code into bytecode, and this bytecode is executed by the Python VM (similar to Java). • Two modes: normal and interactive. • Normal mode: entire .py files are provided to the interpreter. • Interactive mode: read-eval-print loop (REPL) executes statements piecewise.
  • 6. Hello World Program C Language // Your First C Program #include <stdio.h> int main() { printf("Hello, World!"); return 0; } Java Language // Your First Java Program class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World!"); } } Python Language #Your 1st Python Program print(“Hello World”)
  • 7. Which Version to follow? • F1: Division operator Eg. -7 / 5 • F2: I/O functions • F3: str type • F4: xrange() saves memory but doesn’t support slicing • F5: Error Handling try: trying_to_check_error except NameError, err: print err, 'Error Caused' # Would not work in Python 3.x • F6: modules Python 3.10.0b4 is available". 10 July 2021. BUT still the stable version is 3.9
  • 8. 1. Python Shell: An interactive interpreter. It is pre available in Linux and Mac OS X 2. Script mode on cmd 3. IDE: Atom, IDLE , Jupyter, Spyder, etc. Find out more at the PowerPoint Getting Started Center Modes of running a Python Code .py Python Shell IDE Script mode
  • 9. Some Fundamentals • Whitespace is significant in Python. Where other languages may use {} or (), Python uses indentation to denote code blocks. • Comments • Single-line comments denoted by #. • Multi-line comments begin and end with three “s. • Typically, multi-line comments are meant for documentation. • Comments should express information that cannot be expressed in code – do not restate code. # here’s a comment for i in range(0,3): print (i) def myfunc(): """here’s a comment about the myfunc function”””""" print(“I'm in a function!“)
  • 10. Data Types & Operators in Python
  • 11. Applications & Use Cases of Python

Editor's Notes

  1. In Slide Show mode, click the arrow to enter the PowerPoint Getting Started Center.