SlideShare a Scribd company logo
1 of 14

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

What's hot

Fizz and buzz of computer programs in python.
Fizz and buzz of computer programs in python.Fizz and buzz of computer programs in python.
Fizz and buzz of computer programs in python.Esehara Shigeo
 
Introduction to Python3 Programming Language
Introduction to Python3 Programming LanguageIntroduction to Python3 Programming Language
Introduction to Python3 Programming LanguageTushar Mittal
 
Python for Linux System Administration
Python for Linux System AdministrationPython for Linux System Administration
Python for Linux System Administrationvceder
 
북스터디 디스커버리 Go 언어
북스터디 디스커버리 Go 언어북스터디 디스커버리 Go 언어
북스터디 디스커버리 Go 언어동규 이
 
Alta performance com Python
Alta performance com PythonAlta performance com Python
Alta performance com PythonBruno Barbosa
 
Session 02 python basics
Session 02 python basicsSession 02 python basics
Session 02 python basicsbodaceacat
 
Hands on Raspberry Pi - Creative Technologists
Hands on Raspberry Pi - Creative TechnologistsHands on Raspberry Pi - Creative Technologists
Hands on Raspberry Pi - Creative Technologistsbennuttall
 
What Shazam doesn't want you to know
What Shazam doesn't want you to knowWhat Shazam doesn't want you to know
What Shazam doesn't want you to knowRoy van Rijn
 
Introduction to python for beginners
Introduction to python for beginnersIntroduction to python for beginners
Introduction to python for beginnersAbdul Basit
 
Why Python (for Statisticians)
Why Python (for Statisticians)Why Python (for Statisticians)
Why Python (for Statisticians)Matt Harrison
 
PyCon 2013 : Scripting to PyPi to GitHub and More
PyCon 2013 : Scripting to PyPi to GitHub and MorePyCon 2013 : Scripting to PyPi to GitHub and More
PyCon 2013 : Scripting to PyPi to GitHub and MoreMatt Harrison
 
ThouCount
ThouCountThouCount
ThouCountMatt R
 

What's hot (17)

Fizz and buzz of computer programs in python.
Fizz and buzz of computer programs in python.Fizz and buzz of computer programs in python.
Fizz and buzz of computer programs in python.
 
Introduction to Python3 Programming Language
Introduction to Python3 Programming LanguageIntroduction to Python3 Programming Language
Introduction to Python3 Programming Language
 
Python for Linux System Administration
Python for Linux System AdministrationPython for Linux System Administration
Python for Linux System Administration
 
북스터디 디스커버리 Go 언어
북스터디 디스커버리 Go 언어북스터디 디스커버리 Go 언어
북스터디 디스커버리 Go 언어
 
Fileinc
FileincFileinc
Fileinc
 
Alta performance com Python
Alta performance com PythonAlta performance com Python
Alta performance com Python
 
Session 02 python basics
Session 02 python basicsSession 02 python basics
Session 02 python basics
 
Hands on Raspberry Pi - Creative Technologists
Hands on Raspberry Pi - Creative TechnologistsHands on Raspberry Pi - Creative Technologists
Hands on Raspberry Pi - Creative Technologists
 
What Shazam doesn't want you to know
What Shazam doesn't want you to knowWhat Shazam doesn't want you to know
What Shazam doesn't want you to know
 
Hello world
Hello worldHello world
Hello world
 
Introduction to python for beginners
Introduction to python for beginnersIntroduction to python for beginners
Introduction to python for beginners
 
Why Python (for Statisticians)
Why Python (for Statisticians)Why Python (for Statisticians)
Why Python (for Statisticians)
 
PyCon 2013 : Scripting to PyPi to GitHub and More
PyCon 2013 : Scripting to PyPi to GitHub and MorePyCon 2013 : Scripting to PyPi to GitHub and More
PyCon 2013 : Scripting to PyPi to GitHub and More
 
Let's golang
Let's golangLet's golang
Let's golang
 
Python 101 1
Python 101   1Python 101   1
Python 101 1
 
ThouCount
ThouCountThouCount
ThouCount
 
Unix class 5_23
Unix class 5_23Unix class 5_23
Unix class 5_23
 

Viewers also liked

Pola pengembangan kemahasiswaan unas tahun 2016 1
Pola pengembangan kemahasiswaan unas tahun 2016 1Pola pengembangan kemahasiswaan unas tahun 2016 1
Pola pengembangan kemahasiswaan unas tahun 2016 1Mary Maryam
 
Presentación sin título
Presentación sin títuloPresentación sin título
Presentación sin títuloSalome Chinlle
 
My Updated Resume May 2016 dccx
My Updated Resume May 2016 dccxMy Updated Resume May 2016 dccx
My Updated Resume May 2016 dccxJATIN GOYAL
 
Ac fr ogdq1z2lgdqllgwfxehcasmvudbczbp62kousvk4delqryzzovbqhrcnhtvgnx-eveouk09...
Ac fr ogdq1z2lgdqllgwfxehcasmvudbczbp62kousvk4delqryzzovbqhrcnhtvgnx-eveouk09...Ac fr ogdq1z2lgdqllgwfxehcasmvudbczbp62kousvk4delqryzzovbqhrcnhtvgnx-eveouk09...
Ac fr ogdq1z2lgdqllgwfxehcasmvudbczbp62kousvk4delqryzzovbqhrcnhtvgnx-eveouk09...joel messias cunha
 
Inmunodeficiencias primarias: Inmunodeficiencia por alteracion de componentes...
Inmunodeficiencias primarias: Inmunodeficiencia por alteracion de componentes...Inmunodeficiencias primarias: Inmunodeficiencia por alteracion de componentes...
Inmunodeficiencias primarias: Inmunodeficiencia por alteracion de componentes...Melissa Pino
 
Inmunodeficiencias primarias: Inmunodeficiencia de células B
Inmunodeficiencias primarias: Inmunodeficiencia de células BInmunodeficiencias primarias: Inmunodeficiencia de células B
Inmunodeficiencias primarias: Inmunodeficiencia de células BMelissa Pino
 
Inmunodeficiencias primarias: Inmunodeficiencias combinadas
Inmunodeficiencias primarias: Inmunodeficiencias combinadasInmunodeficiencias primarias: Inmunodeficiencias combinadas
Inmunodeficiencias primarias: Inmunodeficiencias combinadasMelissa Pino
 

Viewers also liked (14)

The Art Of The Presentation
The Art Of The PresentationThe Art Of The Presentation
The Art Of The Presentation
 
Uso del diccionario
Uso del diccionario Uso del diccionario
Uso del diccionario
 
Pola pengembangan kemahasiswaan unas tahun 2016 1
Pola pengembangan kemahasiswaan unas tahun 2016 1Pola pengembangan kemahasiswaan unas tahun 2016 1
Pola pengembangan kemahasiswaan unas tahun 2016 1
 
La diosa de la justicia
La diosa de la justiciaLa diosa de la justicia
La diosa de la justicia
 
Python002
Python002Python002
Python002
 
Presentación sin título
Presentación sin títuloPresentación sin título
Presentación sin título
 
My Updated Resume May 2016 dccx
My Updated Resume May 2016 dccxMy Updated Resume May 2016 dccx
My Updated Resume May 2016 dccx
 
Ac fr ogdq1z2lgdqllgwfxehcasmvudbczbp62kousvk4delqryzzovbqhrcnhtvgnx-eveouk09...
Ac fr ogdq1z2lgdqllgwfxehcasmvudbczbp62kousvk4delqryzzovbqhrcnhtvgnx-eveouk09...Ac fr ogdq1z2lgdqllgwfxehcasmvudbczbp62kousvk4delqryzzovbqhrcnhtvgnx-eveouk09...
Ac fr ogdq1z2lgdqllgwfxehcasmvudbczbp62kousvk4delqryzzovbqhrcnhtvgnx-eveouk09...
 
Servicios LEGALES ENV
Servicios LEGALES ENVServicios LEGALES ENV
Servicios LEGALES ENV
 
Inmunodeficiencias primarias: Inmunodeficiencia por alteracion de componentes...
Inmunodeficiencias primarias: Inmunodeficiencia por alteracion de componentes...Inmunodeficiencias primarias: Inmunodeficiencia por alteracion de componentes...
Inmunodeficiencias primarias: Inmunodeficiencia por alteracion de componentes...
 
Inmunodeficiencias primarias: Inmunodeficiencia de células B
Inmunodeficiencias primarias: Inmunodeficiencia de células BInmunodeficiencias primarias: Inmunodeficiencia de células B
Inmunodeficiencias primarias: Inmunodeficiencia de células B
 
Echinordermata
EchinordermataEchinordermata
Echinordermata
 
Global Warming
Global WarmingGlobal Warming
Global Warming
 
Inmunodeficiencias primarias: Inmunodeficiencias combinadas
Inmunodeficiencias primarias: Inmunodeficiencias combinadasInmunodeficiencias primarias: Inmunodeficiencias combinadas
Inmunodeficiencias primarias: Inmunodeficiencias combinadas
 

Similar to Python001

Programming Under Linux In Python
Programming Under Linux In PythonProgramming Under Linux In Python
Programming Under Linux In PythonMarwan Osman
 
Python_Introduction_Good_PPT.pptx
Python_Introduction_Good_PPT.pptxPython_Introduction_Good_PPT.pptx
Python_Introduction_Good_PPT.pptxlemonchoos
 
unit (1)INTRODUCTION TO PYTHON course.pptx
unit (1)INTRODUCTION TO PYTHON course.pptxunit (1)INTRODUCTION TO PYTHON course.pptx
unit (1)INTRODUCTION TO PYTHON course.pptxusvirat1805
 
Python_Haegl.powerpoint presentation. tx
Python_Haegl.powerpoint presentation. txPython_Haegl.powerpoint presentation. tx
Python_Haegl.powerpoint presentation. txvishwanathgoudapatil1
 
python-160403194316.pdf
python-160403194316.pdfpython-160403194316.pdf
python-160403194316.pdfgmadhu8
 
Python Seminar PPT
Python Seminar PPTPython Seminar PPT
Python Seminar PPTShivam Gupta
 
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...DRVaibhavmeshram1
 
python introduction initial lecture unit1.pptx
python introduction initial lecture unit1.pptxpython introduction initial lecture unit1.pptx
python introduction initial lecture unit1.pptxChandraPrakash715640
 

Similar to Python001 (20)

Spsl iv unit final
Spsl iv unit  finalSpsl iv unit  final
Spsl iv unit final
 
Spsl iv unit final
Spsl iv unit  finalSpsl iv unit  final
Spsl iv unit final
 
Programming Under Linux In Python
Programming Under Linux In PythonProgramming Under Linux In Python
Programming Under Linux In Python
 
Python_Introduction_Good_PPT.pptx
Python_Introduction_Good_PPT.pptxPython_Introduction_Good_PPT.pptx
Python_Introduction_Good_PPT.pptx
 
Python fundamentals
Python fundamentalsPython fundamentals
Python fundamentals
 
Python
PythonPython
Python
 
unit (1)INTRODUCTION TO PYTHON course.pptx
unit (1)INTRODUCTION TO PYTHON course.pptxunit (1)INTRODUCTION TO PYTHON course.pptx
unit (1)INTRODUCTION TO PYTHON course.pptx
 
Python_Haegl.powerpoint presentation. tx
Python_Haegl.powerpoint presentation. txPython_Haegl.powerpoint presentation. tx
Python_Haegl.powerpoint presentation. tx
 
python-160403194316.pdf
python-160403194316.pdfpython-160403194316.pdf
python-160403194316.pdf
 
Python Seminar PPT
Python Seminar PPTPython Seminar PPT
Python Seminar PPT
 
Python
PythonPython
Python
 
python into.pptx
python into.pptxpython into.pptx
python into.pptx
 
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
 
python introduction initial lecture unit1.pptx
python introduction initial lecture unit1.pptxpython introduction initial lecture unit1.pptx
python introduction initial lecture unit1.pptx
 
Python Course
Python CoursePython Course
Python Course
 
Python for dummies
Python for dummiesPython for dummies
Python for dummies
 
Python Introduction
Python IntroductionPython Introduction
Python Introduction
 
Python Basics
Python Basics Python Basics
Python Basics
 
Python ppt
Python pptPython ppt
Python ppt
 
Pythonppt28 11-18
Pythonppt28 11-18Pythonppt28 11-18
Pythonppt28 11-18
 

Recently uploaded

Navigation in flutter – how to add stack, tab, and drawer navigators to your ...
Navigation in flutter – how to add stack, tab, and drawer navigators to your ...Navigation in flutter – how to add stack, tab, and drawer navigators to your ...
Navigation in flutter – how to add stack, tab, and drawer navigators to your ...Flutter Agency
 
Auto Affiliate AI Earns First Commission in 3 Hours..pdf
Auto Affiliate  AI Earns First Commission in 3 Hours..pdfAuto Affiliate  AI Earns First Commission in 3 Hours..pdf
Auto Affiliate AI Earns First Commission in 3 Hours..pdfSelfMade bd
 
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypseTomasz Kowalczewski
 
Your Ultimate Web Studio for Streaming Anywhere | Evmux
Your Ultimate Web Studio for Streaming Anywhere | EvmuxYour Ultimate Web Studio for Streaming Anywhere | Evmux
Your Ultimate Web Studio for Streaming Anywhere | Evmuxevmux96
 
Incident handling is a clearly defined set of procedures to manage and respon...
Incident handling is a clearly defined set of procedures to manage and respon...Incident handling is a clearly defined set of procedures to manage and respon...
Incident handling is a clearly defined set of procedures to manage and respon...Varun Mithran
 
Spring into AI presented by Dan Vega 5/14
Spring into AI presented by Dan Vega 5/14Spring into AI presented by Dan Vega 5/14
Spring into AI presented by Dan Vega 5/14VMware Tanzu
 
GraphSummit Milan - Neo4j: The Art of the Possible with Graph
GraphSummit Milan - Neo4j: The Art of the Possible with GraphGraphSummit Milan - Neo4j: The Art of the Possible with Graph
GraphSummit Milan - Neo4j: The Art of the Possible with GraphNeo4j
 
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...drm1699
 
Modern binary build systems - PyCon 2024
Modern binary build systems - PyCon 2024Modern binary build systems - PyCon 2024
Modern binary build systems - PyCon 2024Henry Schreiner
 
BusinessGPT - Security and Governance for Generative AI
BusinessGPT  - Security and Governance for Generative AIBusinessGPT  - Security and Governance for Generative AI
BusinessGPT - Security and Governance for Generative AIAGATSoftware
 
Encryption Recap: A Refresher on Key Concepts
Encryption Recap: A Refresher on Key ConceptsEncryption Recap: A Refresher on Key Concepts
Encryption Recap: A Refresher on Key Conceptsthomashtkim
 
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit Milan
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit MilanWorkshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit Milan
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit MilanNeo4j
 
Team Transformation Tactics for Holistic Testing and Quality (NewCrafts Paris...
Team Transformation Tactics for Holistic Testing and Quality (NewCrafts Paris...Team Transformation Tactics for Holistic Testing and Quality (NewCrafts Paris...
Team Transformation Tactics for Holistic Testing and Quality (NewCrafts Paris...Lisi Hocke
 
Effective Strategies for Wix's Scaling challenges - GeeCon
Effective Strategies for Wix's Scaling challenges - GeeConEffective Strategies for Wix's Scaling challenges - GeeCon
Effective Strategies for Wix's Scaling challenges - GeeConNatan Silnitsky
 
Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024Andreas Granig
 
The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)Roberto Bettazzoni
 
Abortion Pill Prices Jane Furse ](+27832195400*)[ 🏥 Women's Abortion Clinic i...
Abortion Pill Prices Jane Furse ](+27832195400*)[ 🏥 Women's Abortion Clinic i...Abortion Pill Prices Jane Furse ](+27832195400*)[ 🏥 Women's Abortion Clinic i...
Abortion Pill Prices Jane Furse ](+27832195400*)[ 🏥 Women's Abortion Clinic i...Abortion Clinic
 

Recently uploaded (20)

Navigation in flutter – how to add stack, tab, and drawer navigators to your ...
Navigation in flutter – how to add stack, tab, and drawer navigators to your ...Navigation in flutter – how to add stack, tab, and drawer navigators to your ...
Navigation in flutter – how to add stack, tab, and drawer navigators to your ...
 
Auto Affiliate AI Earns First Commission in 3 Hours..pdf
Auto Affiliate  AI Earns First Commission in 3 Hours..pdfAuto Affiliate  AI Earns First Commission in 3 Hours..pdf
Auto Affiliate AI Earns First Commission in 3 Hours..pdf
 
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
 
Your Ultimate Web Studio for Streaming Anywhere | Evmux
Your Ultimate Web Studio for Streaming Anywhere | EvmuxYour Ultimate Web Studio for Streaming Anywhere | Evmux
Your Ultimate Web Studio for Streaming Anywhere | Evmux
 
Incident handling is a clearly defined set of procedures to manage and respon...
Incident handling is a clearly defined set of procedures to manage and respon...Incident handling is a clearly defined set of procedures to manage and respon...
Incident handling is a clearly defined set of procedures to manage and respon...
 
Spring into AI presented by Dan Vega 5/14
Spring into AI presented by Dan Vega 5/14Spring into AI presented by Dan Vega 5/14
Spring into AI presented by Dan Vega 5/14
 
GraphSummit Milan - Neo4j: The Art of the Possible with Graph
GraphSummit Milan - Neo4j: The Art of the Possible with GraphGraphSummit Milan - Neo4j: The Art of the Possible with Graph
GraphSummit Milan - Neo4j: The Art of the Possible with Graph
 
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
 
Modern binary build systems - PyCon 2024
Modern binary build systems - PyCon 2024Modern binary build systems - PyCon 2024
Modern binary build systems - PyCon 2024
 
Abortion Pill Prices Germiston ](+27832195400*)[ 🏥 Women's Abortion Clinic in...
Abortion Pill Prices Germiston ](+27832195400*)[ 🏥 Women's Abortion Clinic in...Abortion Pill Prices Germiston ](+27832195400*)[ 🏥 Women's Abortion Clinic in...
Abortion Pill Prices Germiston ](+27832195400*)[ 🏥 Women's Abortion Clinic in...
 
BusinessGPT - Security and Governance for Generative AI
BusinessGPT  - Security and Governance for Generative AIBusinessGPT  - Security and Governance for Generative AI
BusinessGPT - Security and Governance for Generative AI
 
Encryption Recap: A Refresher on Key Concepts
Encryption Recap: A Refresher on Key ConceptsEncryption Recap: A Refresher on Key Concepts
Encryption Recap: A Refresher on Key Concepts
 
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit Milan
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit MilanWorkshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit Milan
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit Milan
 
Abortion Clinic In Pretoria ](+27832195400*)[ 🏥 Safe Abortion Pills in Pretor...
Abortion Clinic In Pretoria ](+27832195400*)[ 🏥 Safe Abortion Pills in Pretor...Abortion Clinic In Pretoria ](+27832195400*)[ 🏥 Safe Abortion Pills in Pretor...
Abortion Clinic In Pretoria ](+27832195400*)[ 🏥 Safe Abortion Pills in Pretor...
 
Team Transformation Tactics for Holistic Testing and Quality (NewCrafts Paris...
Team Transformation Tactics for Holistic Testing and Quality (NewCrafts Paris...Team Transformation Tactics for Holistic Testing and Quality (NewCrafts Paris...
Team Transformation Tactics for Holistic Testing and Quality (NewCrafts Paris...
 
Effective Strategies for Wix's Scaling challenges - GeeCon
Effective Strategies for Wix's Scaling challenges - GeeConEffective Strategies for Wix's Scaling challenges - GeeCon
Effective Strategies for Wix's Scaling challenges - GeeCon
 
Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024
 
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
 
The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)
 
Abortion Pill Prices Jane Furse ](+27832195400*)[ 🏥 Women's Abortion Clinic i...
Abortion Pill Prices Jane Furse ](+27832195400*)[ 🏥 Women's Abortion Clinic i...Abortion Pill Prices Jane Furse ](+27832195400*)[ 🏥 Women's Abortion Clinic i...
Abortion Pill Prices Jane Furse ](+27832195400*)[ 🏥 Women's Abortion Clinic i...
 

Python001

  • 1.
  • 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