0% found this document useful (0 votes)
15 views

Intro to python-2

Python is a highly popular multipurpose programming language used for web development, software development, data analysis, and more. It is known for its easy-to-read syntax, being free and open-source, and having a large community, making it beginner-friendly. The document covers Python's syntax, data types, variables, built-in functions, operators, and conditional statements.

Uploaded by

Sharon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Intro to python-2

Python is a highly popular multipurpose programming language used for web development, software development, data analysis, and more. It is known for its easy-to-read syntax, being free and open-source, and having a large community, making it beginner-friendly. The document covers Python's syntax, data types, variables, built-in functions, operators, and conditional statements.

Uploaded by

Sharon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 31

INTRO TO PYTHON

W H AT I S P Y T H O N ?
• Highly popular multipurpose programming language

IT IS USED FOR:
• Web development (Server Side)
• Software development
• data analysis
• machine learning
• task automation
• ...and much more
WHY LEARN PYTHON?

• Syntax is easy to read and understand


• Free and open-source
• Large and active community
• Beginner-friendly and versatile
P Y T H O N S Y N TA X

E X E C U T E P Y T H O N S Y N TA X
P Y T H O N S Y N TA X

P Y T H O N I N D E N TAT I O N
D ATA T Y P E S

• string(“hello”)

• number
⚬ integer(44 or -44)
⚬ fl o a t ( 4 . 4 )

• b o o l e a n ( Tr u e o r F a l s e )
D ATA T Y P E S
VA R I A B L E S
Python variable is like a labeled storage box or container used to store data.

D E C L A R I N G VA R I B L E
VA R I A B L E S

D I S P L AY T H E VA R I A B L E
VA R I A B L E S

R E A S S I G N VA LU E
VA R I A B L E S

NAMING CONVENTION
B U I LT- I N F U N C T I O N S

input()
B U I LT- I N F U N C T I O N S

Display user input


B U I LT- I N F U N C T I O N S

Display user input


B U I LT- I N F U N C T I O N S
B U I LT- I N F U N C T I O N S
O P E A R AT O R S

• Arithmetic operator
• Assignment operator
• Comparison operator
• Logical opeartor
A R I T H M E T I C O P E R AT O R
A R I T H M E T I C O P E R AT O R
ASSIGNMENT
O P E R AT O R
ASSIGNMENT
O P E R AT O R
C O M PA R I S O N
O P E R AT O R
C O M PA R I S O N
O P E R AT O R
C O M PA R I S O N
O P E R AT O R
L O G I C A L O P E R AT O R
L O G I C A L O P E R AT O R
L O G I C A L O P E R AT O R
L O G I C A L O P E R AT O R
C O N D I T I O N A L S TAT E M E N T
• For program to make decision if the situation comes up

• if statement
• elif statement
• else statement
C O N D I T I O N A L S TAT E M E N T
• if statement
C O N D I T I O N A L S TAT E M E N T
• if statement

You might also like