SlideShare a Scribd company logo
Python basics:
• Syntax – introduce you to the basic Python programming
syntax.
• Variables – explain to you what variables are and how to
create concise and meaningful variables.
• Strings – learn about the string data and some basic string
operations.
• Numbers – introduce to you the commonly-used number
types including integers and floating-point numbers.
• Booleans – explain the Boolean data type, false and truth
values in Python.
• Constants – show you how to define constants in Python.
• Comments – learn how to make notes in your code.
• Type conversion – learn how to convert a value of one type to
another e.g., converting a string to a number.
Python Operators
• Comparison operators – introduce you
to the comparison operators and how to
use them to compare two values.
• Logical operators – show you how to
use logical operators to combine
multiple conditions.
Python Control Flows
• if…else statement – learn how to execute a code block
based on a condition.
• Ternary operator – introduce you to the Python ternary
operator that makes your code more concise.
• for loop with range() – show you how to execute a code
block for a fixed number of times by using the for loop with
range() function.
• while– show you how to execute a code block as long as a
condition is True.
• break – learn how to exit a loop prematurely.
• continue – show you how to skip the current loop iteration
and start the next one.
• pass – show you how to use the pass statement as a
placeholder
Python Functions
• Python functions – introduce you to functions in Python,
how to define functions, and reuse them in the program.
• Default parameters – show you how to specify the default
values for function parameters.
• Keyword arguments – learn how to use the keyword
arguments to make the function call more obvious.
• Recursive functions – learn how to define recursive
functions in Python.
• Lambda Expressions – show you how to define anonymous
functions in Python using lambda expressions.
• Docstrings – show you how to use docstrings to document a
function.
Python List part 1
• List – introduce you to the list type and how to manipulate
list elements effectively.
• Tuple – introduce you to the tuple which is a list that doesn’t
change throughout the program.
• Sort a list in place – show you how to use the sort() method
to sort a list in place.
• Sort a List – learn how to use the sorted() function to return
a new sorted list from the original list.
• Slice a List – show you how to use the list slicing technique
to manipulate lists effectively.
• Unpack a list – show you how to assign list elements to
multiple variables using list unpacking.
• Iterate over a List – learn how to use a for loop to iterate
over a list.
Python List part 2
• Find the index of an element – show you how to find the
index of the first occurrence of an element in a list.
• Iterables – explain to you iterables, and the difference
between an iterable and iterator.
• Transform list elements with map() – show you how to use
the map() function to transform list elements.
• Filter list elements with filter() – use the filter() function to
filter list elements.
• Reduce list elements into a value with reduce() – use the
reduce() function to reduce list elements into a single value.
• List comprehensions – show you how to create a new list
based on an existing list.
Python Dictionaries
• Dictionary – introduce you to the dictionary type.
• Dictionary comprehension – show you how to use dictionary
comprehension to create a new dictionary from an existing
one.
Python Sets part 1
• Set – explain to you the Set type and show you how to
manipulate set elements effectively.
• Set comprehension – explain to you the set comprehension so
that you can create a new set based on an existing set with a
more concise and elegant syntax.
• Union of Sets – show you how to union two or more sets using
the union() method or set union operator (&).
• Intersection of Sets – show you how to intersect two or more
sets using the intersection() method or set intersection
operator (|).
• Difference of sets – learn how to find the difference of sets
using the set difference() method or set difference operator (-
)
Python Sets part 2
• Symmetric Difference of sets – guide you on how to find the
symmetric difference of sets using the
symmetric_difference() method or the symmetric difference
operator (^).
• Subset – check if a set is a subset of another set.
• Superset – check if a set is a superset of another set.
• Disjoint sets – check if two sets are disjoint.
Python Exception Handeling
• try…except – show you how to handle
exception more gracefully using the
try…except statement.
• try…except…finally – learn how to execute a
code block whether an exception occurs or
not.
• try…except…else – explain to you how to use
the try…except…else statement to control the
follow of the program in case of exceptions.
Python loops
• For else - explain to you the for else
statement.
• while…else – discuss the while else
statement.
• do…while loop emulation – show you how to
emulate the do…while loop in Python by using
the while loop statement.
Python more functions
• Unpacking tuples – show you how to unpack a tuple that
assigns individual elements of a tuple to multiple variables.
• *args Parameters – learn how to pass a variable number of
arguments to a function.
• **kwargs Parameters – show you how to pass a variable
number of keyword arguments to a function.
• Partial functions – learn how to define partial functions.
• Type hints – show you how to add type hints to parameters
and return value of a function and how to use the static type
checker (mypy) to check the type statically.
Python Stringd
• F-strings – learn how to use the f-strings to format text
strings in a clear syntax.
• Raw strings – use raw strings to handle strings that contains
the backslashes.
• Backslash – explain how Python uses the backslashes () in
string literals.

More Related Content

What's hot

Introduction To Programming with Python-3
Introduction To Programming with Python-3Introduction To Programming with Python-3
Introduction To Programming with Python-3
Syed Farjad Zia Zaidi
 
Java 1.5 - whats new and modern patterns (2007)
Java 1.5 - whats new and modern patterns (2007)Java 1.5 - whats new and modern patterns (2007)
Java 1.5 - whats new and modern patterns (2007)
Peter Antman
 
11 Unit 1 Chapter 02 Python Fundamentals
11  Unit 1 Chapter 02 Python Fundamentals11  Unit 1 Chapter 02 Python Fundamentals
11 Unit 1 Chapter 02 Python Fundamentals
Praveen M Jigajinni
 
Chapter 7 String
Chapter 7 StringChapter 7 String
Chapter 7 String
OUM SAOKOSAL
 
This presentation is a great introduction to both fundamental programming con...
This presentation is a great introduction to both fundamental programming con...This presentation is a great introduction to both fundamental programming con...
This presentation is a great introduction to both fundamental programming con...
rapidbounce
 
Java String
Java String Java String
Java String
SATYAM SHRIVASTAV
 
Python tuple
Python   tuplePython   tuple
Python tuple
Mohammed Sikander
 
Wrapper class (130240116056)
Wrapper class (130240116056)Wrapper class (130240116056)
Wrapper class (130240116056)
Akshay soni
 
Python cheat-sheet
Python cheat-sheetPython cheat-sheet
Python cheat-sheet
srinivasanr281952
 
Introduction to Python
Introduction to Python Introduction to Python
Introduction to Python
amiable_indian
 
Let’s Learn Python An introduction to Python
Let’s Learn Python An introduction to Python Let’s Learn Python An introduction to Python
Let’s Learn Python An introduction to Python
Jaganadh Gopinadhan
 
Chapter 9 python fundamentals
Chapter 9 python fundamentalsChapter 9 python fundamentals
Chapter 9 python fundamentals
Praveen M Jigajinni
 
Python interview questions and answers
Python interview questions and answersPython interview questions and answers
Python interview questions and answers
RojaPriya
 
04 variables
04 variables04 variables
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
Ayshwarya Baburam
 
Fundamentals of Python Programming
Fundamentals of Python ProgrammingFundamentals of Python Programming
Fundamentals of Python Programming
Kamal Acharya
 
Python interview questions
Python interview questionsPython interview questions
Python interview questions
Pragati Singh
 
Python basics
Python basicsPython basics
Python basics
Manisha Gholve
 
The Awesome Python Class Part-2
The Awesome Python Class Part-2The Awesome Python Class Part-2
The Awesome Python Class Part-2
Binay Kumar Ray
 
wrapper classes
wrapper classeswrapper classes
wrapper classes
Rajesh Roky
 

What's hot (20)

Introduction To Programming with Python-3
Introduction To Programming with Python-3Introduction To Programming with Python-3
Introduction To Programming with Python-3
 
Java 1.5 - whats new and modern patterns (2007)
Java 1.5 - whats new and modern patterns (2007)Java 1.5 - whats new and modern patterns (2007)
Java 1.5 - whats new and modern patterns (2007)
 
11 Unit 1 Chapter 02 Python Fundamentals
11  Unit 1 Chapter 02 Python Fundamentals11  Unit 1 Chapter 02 Python Fundamentals
11 Unit 1 Chapter 02 Python Fundamentals
 
Chapter 7 String
Chapter 7 StringChapter 7 String
Chapter 7 String
 
This presentation is a great introduction to both fundamental programming con...
This presentation is a great introduction to both fundamental programming con...This presentation is a great introduction to both fundamental programming con...
This presentation is a great introduction to both fundamental programming con...
 
Java String
Java String Java String
Java String
 
Python tuple
Python   tuplePython   tuple
Python tuple
 
Wrapper class (130240116056)
Wrapper class (130240116056)Wrapper class (130240116056)
Wrapper class (130240116056)
 
Python cheat-sheet
Python cheat-sheetPython cheat-sheet
Python cheat-sheet
 
Introduction to Python
Introduction to Python Introduction to Python
Introduction to Python
 
Let’s Learn Python An introduction to Python
Let’s Learn Python An introduction to Python Let’s Learn Python An introduction to Python
Let’s Learn Python An introduction to Python
 
Chapter 9 python fundamentals
Chapter 9 python fundamentalsChapter 9 python fundamentals
Chapter 9 python fundamentals
 
Python interview questions and answers
Python interview questions and answersPython interview questions and answers
Python interview questions and answers
 
04 variables
04 variables04 variables
04 variables
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Fundamentals of Python Programming
Fundamentals of Python ProgrammingFundamentals of Python Programming
Fundamentals of Python Programming
 
Python interview questions
Python interview questionsPython interview questions
Python interview questions
 
Python basics
Python basicsPython basics
Python basics
 
The Awesome Python Class Part-2
The Awesome Python Class Part-2The Awesome Python Class Part-2
The Awesome Python Class Part-2
 
wrapper classes
wrapper classeswrapper classes
wrapper classes
 

Similar to Python_basics.pptx

MODULE-2.pptx
MODULE-2.pptxMODULE-2.pptx
MODULE-2.pptx
ASRPANDEY
 
Pa1 session 2
Pa1 session 2 Pa1 session 2
Pa1 session 2
aiclub_slides
 
Python Tutorial Part 1
Python Tutorial Part 1Python Tutorial Part 1
Python Tutorial Part 1
Haitham El-Ghareeb
 
Python Basics.pptx
Python Basics.pptxPython Basics.pptx
Python Basics.pptx
16115yogendraSingh
 
Python For Data Science.pptx
Python For Data Science.pptxPython For Data Science.pptx
Python For Data Science.pptx
rohithprabhas1
 
Python-Basics.pptx
Python-Basics.pptxPython-Basics.pptx
Python-Basics.pptx
TamalSengupta8
 
Pa2 session 1
Pa2 session 1Pa2 session 1
Pa2 session 1
aiclub_slides
 
Pa1 session 4_slides
Pa1 session 4_slidesPa1 session 4_slides
Pa1 session 4_slides
aiclub_slides
 
Python programming
Python programmingPython programming
Python programming
sirikeshava
 
ProgFund_Lecture_3_Data_Structures_and_Iteration-1.pdf
ProgFund_Lecture_3_Data_Structures_and_Iteration-1.pdfProgFund_Lecture_3_Data_Structures_and_Iteration-1.pdf
ProgFund_Lecture_3_Data_Structures_and_Iteration-1.pdf
lailoesakhan
 
ProgPrinc_Lecture_3_Data_Structures_and_Iteration-2.pdf
ProgPrinc_Lecture_3_Data_Structures_and_Iteration-2.pdfProgPrinc_Lecture_3_Data_Structures_and_Iteration-2.pdf
ProgPrinc_Lecture_3_Data_Structures_and_Iteration-2.pdf
lailoesakhan
 
Unit-I-PPT-1.ppt
Unit-I-PPT-1.pptUnit-I-PPT-1.ppt
Unit-I-PPT-1.ppt
Chinmaya M. N
 
Python first day
Python first dayPython first day
Python first day
MARISSTELLA2
 
Python first day
Python first dayPython first day
Python first day
farkhand
 
Python Demo.pptx
Python Demo.pptxPython Demo.pptx
Python Demo.pptx
ParveenShaik21
 
Functions-.pdf
Functions-.pdfFunctions-.pdf
Functions-.pdf
arvdexamsection
 
tupple.pptx
tupple.pptxtupple.pptx
tupple.pptx
satyabratPanda2
 
Programming with Python - Week 3
Programming with Python - Week 3Programming with Python - Week 3
Programming with Python - Week 3
Ahmet Bulut
 
Python indroduction
Python indroductionPython indroduction
Python indroduction
FEG
 
Python Demo.pptx
Python Demo.pptxPython Demo.pptx
Python Demo.pptx
ParveenShaik21
 

Similar to Python_basics.pptx (20)

MODULE-2.pptx
MODULE-2.pptxMODULE-2.pptx
MODULE-2.pptx
 
Pa1 session 2
Pa1 session 2 Pa1 session 2
Pa1 session 2
 
Python Tutorial Part 1
Python Tutorial Part 1Python Tutorial Part 1
Python Tutorial Part 1
 
Python Basics.pptx
Python Basics.pptxPython Basics.pptx
Python Basics.pptx
 
Python For Data Science.pptx
Python For Data Science.pptxPython For Data Science.pptx
Python For Data Science.pptx
 
Python-Basics.pptx
Python-Basics.pptxPython-Basics.pptx
Python-Basics.pptx
 
Pa2 session 1
Pa2 session 1Pa2 session 1
Pa2 session 1
 
Pa1 session 4_slides
Pa1 session 4_slidesPa1 session 4_slides
Pa1 session 4_slides
 
Python programming
Python programmingPython programming
Python programming
 
ProgFund_Lecture_3_Data_Structures_and_Iteration-1.pdf
ProgFund_Lecture_3_Data_Structures_and_Iteration-1.pdfProgFund_Lecture_3_Data_Structures_and_Iteration-1.pdf
ProgFund_Lecture_3_Data_Structures_and_Iteration-1.pdf
 
ProgPrinc_Lecture_3_Data_Structures_and_Iteration-2.pdf
ProgPrinc_Lecture_3_Data_Structures_and_Iteration-2.pdfProgPrinc_Lecture_3_Data_Structures_and_Iteration-2.pdf
ProgPrinc_Lecture_3_Data_Structures_and_Iteration-2.pdf
 
Unit-I-PPT-1.ppt
Unit-I-PPT-1.pptUnit-I-PPT-1.ppt
Unit-I-PPT-1.ppt
 
Python first day
Python first dayPython first day
Python first day
 
Python first day
Python first dayPython first day
Python first day
 
Python Demo.pptx
Python Demo.pptxPython Demo.pptx
Python Demo.pptx
 
Functions-.pdf
Functions-.pdfFunctions-.pdf
Functions-.pdf
 
tupple.pptx
tupple.pptxtupple.pptx
tupple.pptx
 
Programming with Python - Week 3
Programming with Python - Week 3Programming with Python - Week 3
Programming with Python - Week 3
 
Python indroduction
Python indroductionPython indroduction
Python indroduction
 
Python Demo.pptx
Python Demo.pptxPython Demo.pptx
Python Demo.pptx
 

Recently uploaded

manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaalmanuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
wolfsoftcompanyco
 
留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理
留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理
留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理
uehowe
 
Discover the benefits of outsourcing SEO to India
Discover the benefits of outsourcing SEO to IndiaDiscover the benefits of outsourcing SEO to India
Discover the benefits of outsourcing SEO to India
davidjhones387
 
办理新西兰奥克兰大学毕业证学位证书范本原版一模一样
办理新西兰奥克兰大学毕业证学位证书范本原版一模一样办理新西兰奥克兰大学毕业证学位证书范本原版一模一样
办理新西兰奥克兰大学毕业证学位证书范本原版一模一样
xjq03c34
 
Bengaluru Dreamin' 24 - Personal Branding
Bengaluru Dreamin' 24 - Personal BrandingBengaluru Dreamin' 24 - Personal Branding
Bengaluru Dreamin' 24 - Personal Branding
Tarandeep Singh
 
HijackLoader Evolution: Interactive Process Hollowing
HijackLoader Evolution: Interactive Process HollowingHijackLoader Evolution: Interactive Process Hollowing
HijackLoader Evolution: Interactive Process Hollowing
Donato Onofri
 
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
uehowe
 
Ready to Unlock the Power of Blockchain!
Ready to Unlock the Power of Blockchain!Ready to Unlock the Power of Blockchain!
Ready to Unlock the Power of Blockchain!
Toptal Tech
 
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
fovkoyb
 
一比一原版(USYD毕业证)悉尼大学毕业证如何办理
一比一原版(USYD毕业证)悉尼大学毕业证如何办理一比一原版(USYD毕业证)悉尼大学毕业证如何办理
一比一原版(USYD毕业证)悉尼大学毕业证如何办理
k4ncd0z
 
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
ysasp1
 
快速办理(Vic毕业证书)惠灵顿维多利亚大学毕业证完成信一模一样
快速办理(Vic毕业证书)惠灵顿维多利亚大学毕业证完成信一模一样快速办理(Vic毕业证书)惠灵顿维多利亚大学毕业证完成信一模一样
快速办理(Vic毕业证书)惠灵顿维多利亚大学毕业证完成信一模一样
3a0sd7z3
 
快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样
快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样
快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样
3a0sd7z3
 
Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?
Paul Walk
 
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
uehowe
 
怎么办理(umiami毕业证书)美国迈阿密大学毕业证文凭证书实拍图原版一模一样
怎么办理(umiami毕业证书)美国迈阿密大学毕业证文凭证书实拍图原版一模一样怎么办理(umiami毕业证书)美国迈阿密大学毕业证文凭证书实拍图原版一模一样
怎么办理(umiami毕业证书)美国迈阿密大学毕业证文凭证书实拍图原版一模一样
rtunex8r
 

Recently uploaded (16)

manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaalmanuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
 
留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理
留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理
留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理
 
Discover the benefits of outsourcing SEO to India
Discover the benefits of outsourcing SEO to IndiaDiscover the benefits of outsourcing SEO to India
Discover the benefits of outsourcing SEO to India
 
办理新西兰奥克兰大学毕业证学位证书范本原版一模一样
办理新西兰奥克兰大学毕业证学位证书范本原版一模一样办理新西兰奥克兰大学毕业证学位证书范本原版一模一样
办理新西兰奥克兰大学毕业证学位证书范本原版一模一样
 
Bengaluru Dreamin' 24 - Personal Branding
Bengaluru Dreamin' 24 - Personal BrandingBengaluru Dreamin' 24 - Personal Branding
Bengaluru Dreamin' 24 - Personal Branding
 
HijackLoader Evolution: Interactive Process Hollowing
HijackLoader Evolution: Interactive Process HollowingHijackLoader Evolution: Interactive Process Hollowing
HijackLoader Evolution: Interactive Process Hollowing
 
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
 
Ready to Unlock the Power of Blockchain!
Ready to Unlock the Power of Blockchain!Ready to Unlock the Power of Blockchain!
Ready to Unlock the Power of Blockchain!
 
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
 
一比一原版(USYD毕业证)悉尼大学毕业证如何办理
一比一原版(USYD毕业证)悉尼大学毕业证如何办理一比一原版(USYD毕业证)悉尼大学毕业证如何办理
一比一原版(USYD毕业证)悉尼大学毕业证如何办理
 
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
 
快速办理(Vic毕业证书)惠灵顿维多利亚大学毕业证完成信一模一样
快速办理(Vic毕业证书)惠灵顿维多利亚大学毕业证完成信一模一样快速办理(Vic毕业证书)惠灵顿维多利亚大学毕业证完成信一模一样
快速办理(Vic毕业证书)惠灵顿维多利亚大学毕业证完成信一模一样
 
快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样
快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样
快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样
 
Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?
 
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
 
怎么办理(umiami毕业证书)美国迈阿密大学毕业证文凭证书实拍图原版一模一样
怎么办理(umiami毕业证书)美国迈阿密大学毕业证文凭证书实拍图原版一模一样怎么办理(umiami毕业证书)美国迈阿密大学毕业证文凭证书实拍图原版一模一样
怎么办理(umiami毕业证书)美国迈阿密大学毕业证文凭证书实拍图原版一模一样
 

Python_basics.pptx

  • 1. Python basics: • Syntax – introduce you to the basic Python programming syntax. • Variables – explain to you what variables are and how to create concise and meaningful variables. • Strings – learn about the string data and some basic string operations. • Numbers – introduce to you the commonly-used number types including integers and floating-point numbers. • Booleans – explain the Boolean data type, false and truth values in Python. • Constants – show you how to define constants in Python. • Comments – learn how to make notes in your code. • Type conversion – learn how to convert a value of one type to another e.g., converting a string to a number.
  • 2. Python Operators • Comparison operators – introduce you to the comparison operators and how to use them to compare two values. • Logical operators – show you how to use logical operators to combine multiple conditions.
  • 3. Python Control Flows • if…else statement – learn how to execute a code block based on a condition. • Ternary operator – introduce you to the Python ternary operator that makes your code more concise. • for loop with range() – show you how to execute a code block for a fixed number of times by using the for loop with range() function. • while– show you how to execute a code block as long as a condition is True. • break – learn how to exit a loop prematurely. • continue – show you how to skip the current loop iteration and start the next one. • pass – show you how to use the pass statement as a placeholder
  • 4. Python Functions • Python functions – introduce you to functions in Python, how to define functions, and reuse them in the program. • Default parameters – show you how to specify the default values for function parameters. • Keyword arguments – learn how to use the keyword arguments to make the function call more obvious. • Recursive functions – learn how to define recursive functions in Python. • Lambda Expressions – show you how to define anonymous functions in Python using lambda expressions. • Docstrings – show you how to use docstrings to document a function.
  • 5. Python List part 1 • List – introduce you to the list type and how to manipulate list elements effectively. • Tuple – introduce you to the tuple which is a list that doesn’t change throughout the program. • Sort a list in place – show you how to use the sort() method to sort a list in place. • Sort a List – learn how to use the sorted() function to return a new sorted list from the original list. • Slice a List – show you how to use the list slicing technique to manipulate lists effectively. • Unpack a list – show you how to assign list elements to multiple variables using list unpacking. • Iterate over a List – learn how to use a for loop to iterate over a list.
  • 6. Python List part 2 • Find the index of an element – show you how to find the index of the first occurrence of an element in a list. • Iterables – explain to you iterables, and the difference between an iterable and iterator. • Transform list elements with map() – show you how to use the map() function to transform list elements. • Filter list elements with filter() – use the filter() function to filter list elements. • Reduce list elements into a value with reduce() – use the reduce() function to reduce list elements into a single value. • List comprehensions – show you how to create a new list based on an existing list.
  • 7. Python Dictionaries • Dictionary – introduce you to the dictionary type. • Dictionary comprehension – show you how to use dictionary comprehension to create a new dictionary from an existing one.
  • 8. Python Sets part 1 • Set – explain to you the Set type and show you how to manipulate set elements effectively. • Set comprehension – explain to you the set comprehension so that you can create a new set based on an existing set with a more concise and elegant syntax. • Union of Sets – show you how to union two or more sets using the union() method or set union operator (&). • Intersection of Sets – show you how to intersect two or more sets using the intersection() method or set intersection operator (|). • Difference of sets – learn how to find the difference of sets using the set difference() method or set difference operator (- )
  • 9. Python Sets part 2 • Symmetric Difference of sets – guide you on how to find the symmetric difference of sets using the symmetric_difference() method or the symmetric difference operator (^). • Subset – check if a set is a subset of another set. • Superset – check if a set is a superset of another set. • Disjoint sets – check if two sets are disjoint.
  • 10. Python Exception Handeling • try…except – show you how to handle exception more gracefully using the try…except statement. • try…except…finally – learn how to execute a code block whether an exception occurs or not. • try…except…else – explain to you how to use the try…except…else statement to control the follow of the program in case of exceptions.
  • 11. Python loops • For else - explain to you the for else statement. • while…else – discuss the while else statement. • do…while loop emulation – show you how to emulate the do…while loop in Python by using the while loop statement.
  • 12. Python more functions • Unpacking tuples – show you how to unpack a tuple that assigns individual elements of a tuple to multiple variables. • *args Parameters – learn how to pass a variable number of arguments to a function. • **kwargs Parameters – show you how to pass a variable number of keyword arguments to a function. • Partial functions – learn how to define partial functions. • Type hints – show you how to add type hints to parameters and return value of a function and how to use the static type checker (mypy) to check the type statically.
  • 13. Python Stringd • F-strings – learn how to use the f-strings to format text strings in a clear syntax. • Raw strings – use raw strings to handle strings that contains the backslashes. • Backslash – explain how Python uses the backslashes () in string literals.