SlideShare a Scribd company logo
Python001

What is Python?
− Python is a high-level, general-purpose language. The first release of
Python was 1991.

What can we do with python?
1. Unix and Linux System administration
2. Web programming with Django, TurboGears, TurboGears, Flask, Pyramid etc.
3. Artificial Intelligence
4. Scientific Research
5. Game Programming
6. Natural Language Processing
7. Image Processing
8. Machine Learning
9. etc.
 https://www.python.org/downloads/
− Python 3.5.1
− Python 2.7.11

print “hello” # does not work in 3

3 / 2 = 1.5 # in 3

3/2=1 # in 2

3.0/2.0 = 1.5 # in 2

For more details -
− https://wiki.python.org/moin/Python2orPython3

pip is a package management system used
to install and manage software packages written
in Python.

PIP stands for Pip Installs Python or PIP Installs
Packages

Pip installation
− https://pip.pypa.io/en/stable/installing/

Python Package Index
− pypi.python.org

.py is the file extension

No line ending semi-colon (;)

No brackets!!!

Indentation is everything
− 4 spaces or 1 tab

# single line comment

''' multi-line
comment '''

IDLE (Integrated DeveLopment Environment or
Integrated Development and Learning
Environment) is an integrated development
environment for Python

PyCharm

Sublime Text

Notepad++
print("hello world")
Compile and run
$ python hello.py
counter = 100 # An integer assignment
miles = 1000.0 # A floating point
name = "Shahjalal" # A string
print(counter)
print(miles)
print(name)
counter = 100
miles = 1000.0
name = "Shahjalal"
print(counter)
print(miles)
print(name)
counter, miles, name = 100, 1000.0, "Shahjalal"
print(counter)
print(miles)
print(name)

Numbers

String

List

Tuple

Dictionary

Python supports four different numerical types −
− int (signed integers)
− long (long integers, they can also be represented in octal and
hexadecimal)
− float (floating point real values)
− complex (complex numbers)

Here are some examples of numbers −
− Int - 10
− Long - 51924361L
− Float – 0.0
− Complex - 3.14j
str = 'Hello World!'
print(str) # Prints complete string
print(str[0]) # Prints first character of the string
print(str[2:5]) # Prints characters starting from 3rd to
5th
print(str[2:]) # Prints string starting from 3rd
character
print(str * 2) # Prints string two times
print(str + "TEST") # Prints concatenated string
Coming next
Lists, Tuples and Dictionary

More Related Content

PDF
3.Pi for Python
KEY
Charming python
PDF
Workshop programs
PDF
【実践】Python入門_第一回【岩手県立大学_競プロサークル】
PDF
10 more-things-you-can-do-with-python
PDF
Sample Jarvis(desktop assistant)
PDF
Coding in GO - GDG SL - NSBM
PDF
2Bytesprog2 course_2014_c1_sets
3.Pi for Python
Charming python
Workshop programs
【実践】Python入門_第一回【岩手県立大学_競プロサークル】
10 more-things-you-can-do-with-python
Sample Jarvis(desktop assistant)
Coding in GO - GDG SL - NSBM
2Bytesprog2 course_2014_c1_sets

What's hot (17)

PDF
Fizz and buzz of computer programs in python.
ODP
Introduction to Python3 Programming Language
PDF
Python for Linux System Administration
PPTX
북스터디 디스커버리 Go 언어
TXT
Fileinc
PDF
Alta performance com Python
PPTX
Session 02 python basics
PDF
Hands on Raspberry Pi - Creative Technologists
ODP
What Shazam doesn't want you to know
KEY
Hello world
PPTX
Introduction to python for beginners
PDF
Why Python (for Statisticians)
PDF
PyCon 2013 : Scripting to PyPi to GitHub and More
PDF
Let's golang
PDF
Python 101 1
PDF
ThouCount
PPTX
Unix class 5_23
Fizz and buzz of computer programs in python.
Introduction to Python3 Programming Language
Python for Linux System Administration
북스터디 디스커버리 Go 언어
Fileinc
Alta performance com Python
Session 02 python basics
Hands on Raspberry Pi - Creative Technologists
What Shazam doesn't want you to know
Hello world
Introduction to python for beginners
Why Python (for Statisticians)
PyCon 2013 : Scripting to PyPi to GitHub and More
Let's golang
Python 101 1
ThouCount
Unix class 5_23
Ad

Viewers also liked (14)

PDF
The Art Of The Presentation
PPTX
Uso del diccionario
PPTX
Pola pengembangan kemahasiswaan unas tahun 2016 1
PPTX
La diosa de la justicia
PPTX
PPTX
Presentación sin título
DOCX
My Updated Resume May 2016 dccx
PDF
Ac fr ogdq1z2lgdqllgwfxehcasmvudbczbp62kousvk4delqryzzovbqhrcnhtvgnx-eveouk09...
PDF
Servicios LEGALES ENV
PPTX
Inmunodeficiencias primarias: Inmunodeficiencia por alteracion de componentes...
PPTX
Inmunodeficiencias primarias: Inmunodeficiencia de células B
PPT
Echinordermata
PPTX
Global Warming
PPTX
Inmunodeficiencias primarias: Inmunodeficiencias combinadas
The Art Of The Presentation
Uso del diccionario
Pola pengembangan kemahasiswaan unas tahun 2016 1
La diosa de la justicia
Presentación sin título
My Updated Resume May 2016 dccx
Ac fr ogdq1z2lgdqllgwfxehcasmvudbczbp62kousvk4delqryzzovbqhrcnhtvgnx-eveouk09...
Servicios LEGALES ENV
Inmunodeficiencias primarias: Inmunodeficiencia por alteracion de componentes...
Inmunodeficiencias primarias: Inmunodeficiencia de células B
Echinordermata
Global Warming
Inmunodeficiencias primarias: Inmunodeficiencias combinadas
Ad

Similar to Python001 (20)

PPTX
4_Introduction to Python Programming.pptx
PDF
05 python.pdf
PDF
python-handbook.pdf
PDF
Introduction-To-Python- a guide to master
PPTX
python PPT Session 1.pptx
PPTX
Lecture1_introduction to python.pptx
PDF
Python programming
PPTX
Python_Introduction_Good_PPT.pptx
PDF
PPE-Module-1.1 PPE-Module-1.1 PPE-Module-1.1.pdf
PPTX
Python Programming-1.pptx of python by computer
PPTX
Introduction to learn and Python Interpreter
PPTX
Lecture on Fundamentals of Python Programming-1
PPTX
python intro and installation.pptx
PDF
PYTHON PROGRAMMING NOTES RKREDDY.pdf
PPTX
Introduction to python.pptx
PPTX
Python final presentation kirti ppt1
PDF
Introduction to Python.pdf
PPTX
Python_Introduction&DataType.pptx
PDF
Fundamentals of python
PPT
Python ppt
4_Introduction to Python Programming.pptx
05 python.pdf
python-handbook.pdf
Introduction-To-Python- a guide to master
python PPT Session 1.pptx
Lecture1_introduction to python.pptx
Python programming
Python_Introduction_Good_PPT.pptx
PPE-Module-1.1 PPE-Module-1.1 PPE-Module-1.1.pdf
Python Programming-1.pptx of python by computer
Introduction to learn and Python Interpreter
Lecture on Fundamentals of Python Programming-1
python intro and installation.pptx
PYTHON PROGRAMMING NOTES RKREDDY.pdf
Introduction to python.pptx
Python final presentation kirti ppt1
Introduction to Python.pdf
Python_Introduction&DataType.pptx
Fundamentals of python
Python ppt

Recently uploaded (20)

PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
PTS Company Brochure 2025 (1).pdf.......
PPTX
Essential Infomation Tech presentation.pptx
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
System and Network Administraation Chapter 3
PDF
AI in Product Development-omnex systems
PDF
top salesforce developer skills in 2025.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
history of c programming in notes for students .pptx
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Operating system designcfffgfgggggggvggggggggg
Design an Analysis of Algorithms I-SECS-1021-03
PTS Company Brochure 2025 (1).pdf.......
Essential Infomation Tech presentation.pptx
CHAPTER 2 - PM Management and IT Context
How Creative Agencies Leverage Project Management Software.pdf
Reimagine Home Health with the Power of Agentic AI​
Odoo Companies in India – Driving Business Transformation.pdf
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
wealthsignaloriginal-com-DS-text-... (1).pdf
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
System and Network Administraation Chapter 3
AI in Product Development-omnex systems
top salesforce developer skills in 2025.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
history of c programming in notes for students .pptx
Upgrade and Innovation Strategies for SAP ERP Customers
Lecture 3: Operating Systems Introduction to Computer Hardware Systems

Python001

  • 2.  What is Python? − Python is a high-level, general-purpose language. The first release of Python was 1991.  What can we do with python? 1. Unix and Linux System administration 2. Web programming with Django, TurboGears, TurboGears, Flask, Pyramid etc. 3. Artificial Intelligence 4. Scientific Research 5. Game Programming 6. Natural Language Processing 7. Image Processing 8. Machine Learning 9. etc.
  • 4.  print “hello” # does not work in 3  3 / 2 = 1.5 # in 3  3/2=1 # in 2  3.0/2.0 = 1.5 # in 2  For more details - − https://wiki.python.org/moin/Python2orPython3
  • 5.  pip is a package management system used to install and manage software packages written in Python.  PIP stands for Pip Installs Python or PIP Installs Packages  Pip installation − https://pip.pypa.io/en/stable/installing/  Python Package Index − pypi.python.org
  • 6.  .py is the file extension  No line ending semi-colon (;)  No brackets!!!  Indentation is everything − 4 spaces or 1 tab  # single line comment  ''' multi-line comment '''
  • 7.  IDLE (Integrated DeveLopment Environment or Integrated Development and Learning Environment) is an integrated development environment for Python  PyCharm  Sublime Text  Notepad++
  • 8. print("hello world") Compile and run $ python hello.py
  • 9. counter = 100 # An integer assignment miles = 1000.0 # A floating point name = "Shahjalal" # A string print(counter) print(miles) print(name)
  • 10. counter = 100 miles = 1000.0 name = "Shahjalal" print(counter) print(miles) print(name) counter, miles, name = 100, 1000.0, "Shahjalal" print(counter) print(miles) print(name)
  • 12.  Python supports four different numerical types − − int (signed integers) − long (long integers, they can also be represented in octal and hexadecimal) − float (floating point real values) − complex (complex numbers)  Here are some examples of numbers − − Int - 10 − Long - 51924361L − Float – 0.0 − Complex - 3.14j
  • 13. str = 'Hello World!' print(str) # Prints complete string print(str[0]) # Prints first character of the string print(str[2:5]) # Prints characters starting from 3rd to 5th print(str[2:]) # Prints string starting from 3rd character print(str * 2) # Prints string two times print(str + "TEST") # Prints concatenated string
  • 14. Coming next Lists, Tuples and Dictionary