SlideShare a Scribd company logo

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 Language
Tushar Mittal
 
Python for Linux System Administration
Python for Linux System AdministrationPython for Linux System Administration
Python for Linux System Administration
vceder
 
북스터디 디스커버리 Go 언어
북스터디 디스커버리 Go 언어북스터디 디스커버리 Go 언어
북스터디 디스커버리 Go 언어
동규 이
 
Fileinc
FileincFileinc
Fileinc
Karthic Rao
 
Alta performance com Python
Alta performance com PythonAlta performance com Python
Alta performance com Python
Bruno Barbosa
 
Session 02 python basics
Session 02 python basicsSession 02 python basics
Session 02 python basics
bodaceacat
 
Hands on Raspberry Pi - Creative Technologists
Hands on Raspberry Pi - Creative TechnologistsHands on Raspberry Pi - Creative Technologists
Hands on Raspberry Pi - Creative Technologists
bennuttall
 
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
Roy van Rijn
 
Hello world
Hello worldHello world
Hello world
Brad Montgomery
 
Introduction to python for beginners
Introduction to python for beginnersIntroduction to python for beginners
Introduction to python for beginners
Abdul 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 More
Matt Harrison
 
Let's golang
Let's golangLet's golang
Let's golang
SuHyun Jeon
 
Python 101 1
Python 101   1Python 101   1
Python 101 1
Iccha Sethi
 
ThouCount
ThouCountThouCount
ThouCount
Matt R
 
Unix class 5_23
Unix class 5_23Unix class 5_23
Unix class 5_23
Ryota Sugimoto
 

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

The Art Of The Presentation
The Art Of The PresentationThe Art Of The Presentation
The Art Of The Presentation
ICU-Kyiv Career Development Center
 
Uso del diccionario
Uso del diccionario Uso del diccionario
Uso del diccionario
Ricardo Alfonso Caceres Virguez
 
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
Mary Maryam
 
La diosa de la justicia
La diosa de la justiciaLa diosa de la justicia
La diosa de la justicia
claudiomauricioyepez
 
Python002
Python002Python002
Presentación sin título
Presentación sin títuloPresentación sin título
Presentación sin título
Salome Chinlle
 
My Updated Resume May 2016 dccx
My Updated Resume May 2016 dccxMy Updated Resume May 2016 dccx
My Updated Resume May 2016 dccx
JATIN GOYAL
 
Ac fr ogdq1z2lgdqllgwfxehcasmvudbczbp62kousvk4delqryzzovbqhrcnhtvgnx-eveouk09...
Ac fr ogdq1z2lgdqllgwfxehcasmvudbczbp62kousvk4delqryzzovbqhrcnhtvgnx-eveouk09...Ac fr ogdq1z2lgdqllgwfxehcasmvudbczbp62kousvk4delqryzzovbqhrcnhtvgnx-eveouk09...
Ac fr ogdq1z2lgdqllgwfxehcasmvudbczbp62kousvk4delqryzzovbqhrcnhtvgnx-eveouk09...
joel messias cunha
 
Servicios LEGALES ENV
Servicios LEGALES ENVServicios LEGALES ENV
Servicios LEGALES ENV
Esmeralda Najera
 
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 B
Melissa Pino
 
Echinordermata
EchinordermataEchinordermata
Echinordermata
Sesilia Erica
 
Global Warming
Global WarmingGlobal Warming
Global Warming
Sesilia Erica
 
Inmunodeficiencias primarias: Inmunodeficiencias combinadas
Inmunodeficiencias primarias: Inmunodeficiencias combinadasInmunodeficiencias primarias: Inmunodeficiencias combinadas
Inmunodeficiencias primarias: Inmunodeficiencias combinadas
Melissa 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

Spsl iv unit final
Spsl iv unit  finalSpsl iv unit  final
Spsl iv unit final
Sasidhar Kothuru
 
Spsl iv unit final
Spsl iv unit  finalSpsl iv unit  final
Spsl iv unit final
Sasidhar Kothuru
 
Programming Under Linux In Python
Programming Under Linux In PythonProgramming Under Linux In Python
Programming Under Linux In Python
Marwan Osman
 
Python_Introduction_Good_PPT.pptx
Python_Introduction_Good_PPT.pptxPython_Introduction_Good_PPT.pptx
Python_Introduction_Good_PPT.pptx
lemonchoos
 
Python fundamentals
Python fundamentalsPython fundamentals
Python fundamentals
natnaelmamuye
 
Python
PythonPython
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
usvirat1805
 
Python_Haegl.powerpoint presentation. tx
Python_Haegl.powerpoint presentation. txPython_Haegl.powerpoint presentation. tx
Python_Haegl.powerpoint presentation. tx
vishwanathgoudapatil1
 
python-160403194316.pdf
python-160403194316.pdfpython-160403194316.pdf
python-160403194316.pdf
gmadhu8
 
Python Seminar PPT
Python Seminar PPTPython Seminar PPT
Python Seminar PPT
Shivam Gupta
 
Python
PythonPython
Python
Shivam Gupta
 
python into.pptx
python into.pptxpython into.pptx
python into.pptx
Punithavel Ramani
 
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.pptx
ChandraPrakash715640
 
Python Course
Python CoursePython Course
Python Course
Sourabh Sahu
 
Python for dummies
Python for dummiesPython for dummies
Python for dummies
Roberto Stefanetti
 
Python Introduction
Python IntroductionPython Introduction
Python Introduction
ArunaPeriyasamy1
 
Python Basics
Python Basics Python Basics
Python Basics
Adheetha O. V
 
Python ppt
Python pptPython ppt
Python ppt
Rohit Verma
 
Pythonppt28 11-18
Pythonppt28 11-18Pythonppt28 11-18
Pythonppt28 11-18
Saraswathi Murugan
 

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

Using Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query PerformanceUsing Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query Performance
Grant Fritchey
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
Aftab Hussain
 
Unveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdfUnveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdf
brainerhub1
 
DDS-Security 1.2 - What's New? Stronger security for long-running systems
DDS-Security 1.2 - What's New? Stronger security for long-running systemsDDS-Security 1.2 - What's New? Stronger security for long-running systems
DDS-Security 1.2 - What's New? Stronger security for long-running systems
Gerardo Pardo-Castellote
 
Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)
Julian Hyde
 
Oracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptxOracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptx
Remote DBA Services
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
Green Software Development
 
socradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdfsocradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdf
SOCRadar
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptxLORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
lorraineandreiamcidl
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
Shane Coughlan
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
Philip Schwarz
 
Oracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptxOracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptx
Remote DBA Services
 
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
Peter Muessig
 
What is Augmented Reality Image Tracking
What is Augmented Reality Image TrackingWhat is Augmented Reality Image Tracking
What is Augmented Reality Image Tracking
pavan998932
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Neo4j
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
Sven Peters
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
timtebeek1
 
How to write a program in any programming language
How to write a program in any programming languageHow to write a program in any programming language
How to write a program in any programming language
Rakesh Kumar R
 

Recently uploaded (20)

Using Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query PerformanceUsing Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query Performance
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
 
Unveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdfUnveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdf
 
DDS-Security 1.2 - What's New? Stronger security for long-running systems
DDS-Security 1.2 - What's New? Stronger security for long-running systemsDDS-Security 1.2 - What's New? Stronger security for long-running systems
DDS-Security 1.2 - What's New? Stronger security for long-running systems
 
Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)
 
Oracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptxOracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptx
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
 
socradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdfsocradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdf
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptxLORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
 
Oracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptxOracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptx
 
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
 
What is Augmented Reality Image Tracking
What is Augmented Reality Image TrackingWhat is Augmented Reality Image Tracking
What is Augmented Reality Image Tracking
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
 
How to write a program in any programming language
How to write a program in any programming languageHow to write a program in any programming language
How to write a program in any programming language
 

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