SlideShare a Scribd company logo
1 of 10
Basics in Python
‫إعداد‬:
‫م‬.‫محمد‬ ‫علي‬
What is Python?
• It is a high level programming language, it is simple to write and read.
• It is a human readable
• It use for all thing …. Like (desktop programming – Web Application
programming – Mobile Programming - Artificial Intelligence – computer
hardware …etc.)
• Object oriented programming – open source.
Why Python?
• Easy to learn.
• You can do any thing using it.
• Just when you know the basics you can write any program.
• Simple data types.
• Very simple syntax.
• No semicolons (;)
Data types
• There is no a lot of datatypes in python:
• Int
• Float
• String
• That’s it
• Any variable is in one of this data types.
Print command
• It is used for print
• It’s syntax is ( print(thing I want to print) )
• Just in this simple.
• We can use (‘ ‘) or (“ “) for printing the string
• We just put variable name for printing it’s value
• We can use (,) or (+) to print more than one value.
Print command examples
• print(‘hello world’)
• print(“Hello world”)
• The difference here if we want to print this string (‘My name’s Ali’).
• This will give an error.
• To remove the error we must write like this print(“my name’s Ali”).
Print command example
• We can use print command for some math operators like (+ , - , * ,/)
• So we can simple write: print(3+4)
• Or write: print(4-1)
• Or write: print(4/2)
• Or write: print (4*2)
• Or write: print (4%2)
Variables in Python
• We just put name and value we don’t have to put data type
• Just like this:
x=5
• If we write x or print(x) the result will be: 5
• We can know the type of x if we write: print(type(x))
• The result will be <class ‘int’>
Print command example
• In all programming language we cann’t write command like (“x”*5)
• But in python we can
• If we write: print(“x”*5) the result will be:
• xxxxx
• But we cann’t write (“x”+5) because x is a string and 5 is an int
• We will solve this problem latter.
End of first session
Any Question
Thank you

More Related Content

What's hot

Python iteration
Python iterationPython iteration
Python iteration
dietbuddha
 

What's hot (19)

Python ppt
Python pptPython ppt
Python ppt
 
Looping statement in python
Looping statement in pythonLooping statement in python
Looping statement in python
 
Python Control structures
Python Control structuresPython Control structures
Python Control structures
 
Introduction to Python Part-1
Introduction to Python Part-1Introduction to Python Part-1
Introduction to Python Part-1
 
Basics of Python Programming
Basics of Python ProgrammingBasics of Python Programming
Basics of Python Programming
 
Python - Control Structures
Python - Control StructuresPython - Control Structures
Python - Control Structures
 
Python advance
Python advancePython advance
Python advance
 
Python numbers
Python numbersPython numbers
Python numbers
 
Python Loop
Python LoopPython Loop
Python Loop
 
C preprocesor
C preprocesorC preprocesor
C preprocesor
 
Python basics
Python basicsPython basics
Python basics
 
Python The basics
Python   The basicsPython   The basics
Python The basics
 
Python : Data Types
Python : Data TypesPython : Data Types
Python : Data Types
 
Python basics
Python basicsPython basics
Python basics
 
Python iteration
Python iterationPython iteration
Python iteration
 
Iteration
IterationIteration
Iteration
 
basic of desicion control statement in python
basic of  desicion control statement in pythonbasic of  desicion control statement in python
basic of desicion control statement in python
 
Nested loops
Nested loopsNested loops
Nested loops
 
Introduction to Python
Introduction to Python Introduction to Python
Introduction to Python
 

Similar to First session

Python for scientific computing
Python for scientific computingPython for scientific computing
Python for scientific computing
Go Asgard
 
PART - 1 Python Introduction- Variables- Data types - Numeric- String- Boole...
PART - 1  Python Introduction- Variables- Data types - Numeric- String- Boole...PART - 1  Python Introduction- Variables- Data types - Numeric- String- Boole...
PART - 1 Python Introduction- Variables- Data types - Numeric- String- Boole...
manikamr074
 
Tutorial on-python-programming
Tutorial on-python-programmingTutorial on-python-programming
Tutorial on-python-programming
Chetan Giridhar
 

Similar to First session (20)

Python for scientific computing
Python for scientific computingPython for scientific computing
Python for scientific computing
 
ACM init() Spring 2015 Day 1
ACM init() Spring 2015 Day 1ACM init() Spring 2015 Day 1
ACM init() Spring 2015 Day 1
 
PART - 1 Python Introduction- Variables- Data types - Numeric- String- Boole...
PART - 1  Python Introduction- Variables- Data types - Numeric- String- Boole...PART - 1  Python Introduction- Variables- Data types - Numeric- String- Boole...
PART - 1 Python Introduction- Variables- Data types - Numeric- String- Boole...
 
Python Introduction
Python IntroductionPython Introduction
Python Introduction
 
An Intro to Python in 30 minutes
An Intro to Python in 30 minutesAn Intro to Python in 30 minutes
An Intro to Python in 30 minutes
 
python_class.pptx
python_class.pptxpython_class.pptx
python_class.pptx
 
python-online&offline-training-in-kphb-hyderabad (1) (1).pdf
python-online&offline-training-in-kphb-hyderabad (1) (1).pdfpython-online&offline-training-in-kphb-hyderabad (1) (1).pdf
python-online&offline-training-in-kphb-hyderabad (1) (1).pdf
 
python introduction initial lecture unit1.pptx
python introduction initial lecture unit1.pptxpython introduction initial lecture unit1.pptx
python introduction initial lecture unit1.pptx
 
Python programming
Python programmingPython programming
Python programming
 
Python (3).pdf
Python (3).pdfPython (3).pdf
Python (3).pdf
 
Basic concept of Python.pptx includes design tool, identifier, variables.
Basic concept of Python.pptx includes design tool, identifier, variables.Basic concept of Python.pptx includes design tool, identifier, variables.
Basic concept of Python.pptx includes design tool, identifier, variables.
 
#Code2Create: Python Basics
#Code2Create: Python Basics#Code2Create: Python Basics
#Code2Create: Python Basics
 
web programming UNIT VIII python by Bhavsingh Maloth
web programming UNIT VIII python by Bhavsingh Malothweb programming UNIT VIII python by Bhavsingh Maloth
web programming UNIT VIII python by Bhavsingh Maloth
 
Python basics_ part1
Python basics_ part1Python basics_ part1
Python basics_ part1
 
Basic use of Python
Basic use of PythonBasic use of Python
Basic use of Python
 
Tutorial on-python-programming
Tutorial on-python-programmingTutorial on-python-programming
Tutorial on-python-programming
 
Python ppt
Python pptPython ppt
Python ppt
 
Review Python
Review PythonReview Python
Review Python
 
gdscpython.pdf
gdscpython.pdfgdscpython.pdf
gdscpython.pdf
 
lecture 2.pptx
lecture 2.pptxlecture 2.pptx
lecture 2.pptx
 

More from AliMohammad155

More from AliMohammad155 (20)

#1 الدرس الأول من دروس مسار تعلم ال SQL Server بعنوان مخطط ال ERD والتكامل ا...
#1  الدرس الأول من دروس مسار تعلم ال SQL Server بعنوان مخطط ال ERD والتكامل ا...#1  الدرس الأول من دروس مسار تعلم ال SQL Server بعنوان مخطط ال ERD والتكامل ا...
#1 الدرس الأول من دروس مسار تعلم ال SQL Server بعنوان مخطط ال ERD والتكامل ا...
 
شرح مبسط وبسيط لمفهوم ال VLAN
شرح مبسط وبسيط لمفهوم ال VLANشرح مبسط وبسيط لمفهوم ال VLAN
شرح مبسط وبسيط لمفهوم ال VLAN
 
11th session classes diagrams
11th session classes diagrams11th session classes diagrams
11th session classes diagrams
 
10th session erd
10th session erd10th session erd
10th session erd
 
Static route and rip and ospf
Static route and rip and ospfStatic route and rip and ospf
Static route and rip and ospf
 
Ninth session software engineering sequence diagram
Ninth session software engineering sequence diagramNinth session software engineering sequence diagram
Ninth session software engineering sequence diagram
 
Routers and packet tracer
Routers and packet tracerRouters and packet tracer
Routers and packet tracer
 
Viii session activity diagram
Viii session activity diagramViii session activity diagram
Viii session activity diagram
 
OSI Model
OSI ModelOSI Model
OSI Model
 
Seventh session functional and non functional requrements &amp; usecase example
Seventh session functional and non functional requrements &amp; usecase exampleSeventh session functional and non functional requrements &amp; usecase example
Seventh session functional and non functional requrements &amp; usecase example
 
Vlsm and flsm example
Vlsm and flsm exampleVlsm and flsm example
Vlsm and flsm example
 
Sixth session software engineering usecase diagrams
Sixth session software engineering usecase diagramsSixth session software engineering usecase diagrams
Sixth session software engineering usecase diagrams
 
fifth session in networking subnetmask and subnetting
fifth session in networking subnetmask and subnettingfifth session in networking subnetmask and subnetting
fifth session in networking subnetmask and subnetting
 
functional requirements and non functional requirements
functional requirements and non functional requirementsfunctional requirements and non functional requirements
functional requirements and non functional requirements
 
fourth session of basics in networks
fourth session of basics in networksfourth session of basics in networks
fourth session of basics in networks
 
Fourth session software engineering
Fourth session software engineeringFourth session software engineering
Fourth session software engineering
 
third session of basics in networks
third session of basics in networksthird session of basics in networks
third session of basics in networks
 
Third session software engineering
Third session software engineeringThird session software engineering
Third session software engineering
 
Second session Networking (Network topology)
Second session Networking (Network topology)Second session Networking (Network topology)
Second session Networking (Network topology)
 
Second session software engineering algorithms
Second session software engineering   algorithmsSecond session software engineering   algorithms
Second session software engineering algorithms
 

Recently uploaded

Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
FIDO Alliance
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
panagenda
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
FIDO Alliance
 
CORS (Kitworks Team Study 양다윗 발표자료 240510)
CORS (Kitworks Team Study 양다윗 발표자료 240510)CORS (Kitworks Team Study 양다윗 발표자료 240510)
CORS (Kitworks Team Study 양다윗 발표자료 240510)
Wonjun Hwang
 

Recently uploaded (20)

ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps Productivity
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
 
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdfFrisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
 
الأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهلهالأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهله
 
Vector Search @ sw2con for slideshare.pptx
Vector Search @ sw2con for slideshare.pptxVector Search @ sw2con for slideshare.pptx
Vector Search @ sw2con for slideshare.pptx
 
Top 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development CompaniesTop 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development Companies
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
Introduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptxIntroduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptx
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
JavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate GuideJavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate Guide
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage Intacct
 
CORS (Kitworks Team Study 양다윗 발표자료 240510)
CORS (Kitworks Team Study 양다윗 발표자료 240510)CORS (Kitworks Team Study 양다윗 발표자료 240510)
CORS (Kitworks Team Study 양다윗 발표자료 240510)
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 

First session

  • 2. What is Python? • It is a high level programming language, it is simple to write and read. • It is a human readable • It use for all thing …. Like (desktop programming – Web Application programming – Mobile Programming - Artificial Intelligence – computer hardware …etc.) • Object oriented programming – open source.
  • 3. Why Python? • Easy to learn. • You can do any thing using it. • Just when you know the basics you can write any program. • Simple data types. • Very simple syntax. • No semicolons (;)
  • 4. Data types • There is no a lot of datatypes in python: • Int • Float • String • That’s it • Any variable is in one of this data types.
  • 5. Print command • It is used for print • It’s syntax is ( print(thing I want to print) ) • Just in this simple. • We can use (‘ ‘) or (“ “) for printing the string • We just put variable name for printing it’s value • We can use (,) or (+) to print more than one value.
  • 6. Print command examples • print(‘hello world’) • print(“Hello world”) • The difference here if we want to print this string (‘My name’s Ali’). • This will give an error. • To remove the error we must write like this print(“my name’s Ali”).
  • 7. Print command example • We can use print command for some math operators like (+ , - , * ,/) • So we can simple write: print(3+4) • Or write: print(4-1) • Or write: print(4/2) • Or write: print (4*2) • Or write: print (4%2)
  • 8. Variables in Python • We just put name and value we don’t have to put data type • Just like this: x=5 • If we write x or print(x) the result will be: 5 • We can know the type of x if we write: print(type(x)) • The result will be <class ‘int’>
  • 9. Print command example • In all programming language we cann’t write command like (“x”*5) • But in python we can • If we write: print(“x”*5) the result will be: • xxxxx • But we cann’t write (“x”+5) because x is a string and 5 is an int • We will solve this problem latter.
  • 10. End of first session Any Question Thank you