SlideShare a Scribd company logo
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

PDF
Introduction to Python Unit -1 Part .pdf
PPTX
A Brief Introduction to Python - English
PDF
python-handbook.pdf
PPTX
Python final presentation kirti ppt1
PPTX
Introduction to python.pptx
PDF
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
PDF
Fundamentals of python
PPTX
Python tutorial for beginners - Tib academy
Introduction to Python Unit -1 Part .pdf
A Brief Introduction to Python - English
python-handbook.pdf
Python final presentation kirti ppt1
Introduction to python.pptx
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Fundamentals of python
Python tutorial for beginners - Tib academy

Similar to Welcome to Python Programming.pptx (20)

PPTX
Phython Programming Language
PPT
python-ppt.ppt
PPT
python-ppt.ppt
PPT
python installation in different Operating Systems.ppt
PPTX
Python Prgramming basics for Beginnerss for User friendly interface
PDF
Unit 1-Part-1-Introduction to Python.pdf
PPTX
Python Programming Draft PPT.pptx
PPT
week1.ppt
PPTX
python intro and installation.pptx
PDF
intro.pptx (1).pdf
PPTX
Introduction python
PPTX
Introduction to python for Beginners
PDF
05 python.pdf
PPTX
Introduction to Python CH-1.pptx for all class 6-8
PDF
PYTHON PROGRAMMING NOTES RKREDDY.pdf
PPTX
Python Training in Pune - Ethans Tech Pune
PDF
Lecture01 - Fundamental Programming with Python Language
PPTX
Python Tutorial | Python Programming Language
PPTX
python presntation 2.pptx
PDF
Py-Slides- easuajsjsjejejjwlqpqpqpp1.pdf
Phython Programming Language
python-ppt.ppt
python-ppt.ppt
python installation in different Operating Systems.ppt
Python Prgramming basics for Beginnerss for User friendly interface
Unit 1-Part-1-Introduction to Python.pdf
Python Programming Draft PPT.pptx
week1.ppt
python intro and installation.pptx
intro.pptx (1).pdf
Introduction python
Introduction to python for Beginners
05 python.pdf
Introduction to Python CH-1.pptx for all class 6-8
PYTHON PROGRAMMING NOTES RKREDDY.pdf
Python Training in Pune - Ethans Tech Pune
Lecture01 - Fundamental Programming with Python Language
Python Tutorial | Python Programming Language
python presntation 2.pptx
Py-Slides- easuajsjsjejejjwlqpqpqpp1.pdf
Ad

More from UmmeSalmaM1 (10)

PPTX
Guidelines for Effective Data Visualization
PDF
Introduction to Data Science
PDF
Role of digital technology in autism a case study
PDF
Programming for data science in python
PDF
Demography basedhybridrecommendersystemformovierecommendation
PDF
Datascience and python
PDF
Machine learning visual_quiz
PDF
Lecture1 introduction to machine learning
PDF
The Art of Entrepreneurship
PPTX
Impact of Learning Functions on Prediction of Stock Data
Guidelines for Effective Data Visualization
Introduction to Data Science
Role of digital technology in autism a case study
Programming for data science in python
Demography basedhybridrecommendersystemformovierecommendation
Datascience and python
Machine learning visual_quiz
Lecture1 introduction to machine learning
The Art of Entrepreneurship
Impact of Learning Functions on Prediction of Stock Data
Ad

Recently uploaded (20)

PPT
Teaching material agriculture food technology
PDF
KodekX | Application Modernization Development
PPTX
Big Data Technologies - Introduction.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Electronic commerce courselecture one. Pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
cuic standard and advanced reporting.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
NewMind AI Weekly Chronicles - August'25 Week I
Teaching material agriculture food technology
KodekX | Application Modernization Development
Big Data Technologies - Introduction.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Unlocking AI with Model Context Protocol (MCP)
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Electronic commerce courselecture one. Pdf
Chapter 3 Spatial Domain Image Processing.pdf
Spectroscopy.pptx food analysis technology
Empathic Computing: Creating Shared Understanding
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Reach Out and Touch Someone: Haptics and Empathic Computing
Network Security Unit 5.pdf for BCA BBA.
cuic standard and advanced reporting.pdf
MYSQL Presentation for SQL database connectivity
NewMind AI Weekly Chronicles - August'25 Week I

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

  • #9: In Slide Show mode, click the arrow to enter the PowerPoint Getting Started Center.