Table of Contents
What you’ll learn
- Python Programming Language from Scratch
- Gaining practical experience with real-time exercises
- Python Datatypes – List, Tuple, Set, Dictionary
- Understanding the concept of Programs in Python
- Writing and using Python functions
- Various Functions – Range, Input, Map, Filter, Split, Enumerate, Zip, Unzip, Def, Lambda
- Loops in Python – For loop, While loop etc
- Indexing, Slicing, Datatype Casting in Python
- You can download each lecture video and source code files
Description
break
else :
print(‘loop is finished’)
PASS STATEMENT – To pass over to the next commands
1) for x in [1,2,3,4,5,6,7]:
Pass
2) for x in [1,2,3,4,5,6,7]:
if x == 3:
pass
print (x)
21. WHILE LOOP – A while loop repeats a block of code as long as a certain condition is true.
1) i = 0
while i < 6 :
print (i)
i = i +1
2) i = 0
while i < 6 :
i = i +1
print (i)
BREAK STATEMENT (While Loop) –
1) i = 0
while i < 6 :
print (i)
if i == 4 :
break
i = i +1
2) i = 0
while i < 6 :
if i == 4 :
break
print (i)
i = i + 1
CONTINUE STATEMENT (While Loop) –
1) i = 0
while i < 6 :
i = i +1
if i == 3 :
continue
print (i)
2) i = 0
while i < 6 :
if i == 3 :
continue
print (i)
i = i +1
3)i = 0
while i < 6 :
if i == 3:
continue
i = i + 1
print (i)
ELSE IN WHILE LOOP –
1) i = 0
while i < 6 :
print (i)
i = i+1
else:
print (‘condition ends’)
BREAK & CONTINUE STATEMENT (While Loop) –
i = 0
while i < 10 :
i = i + 1
if i = = 3:
continue
if i = = 9 :
break
print (i)
22. SPLIT FUNCTION
It splits a string into a list.
Syntax : string.split ( separator , maxsplit )
23. MAP FUNCTION
It takes all items of a list and apply a function to it.
Syntax : map( function, iterables ) or map( condition, values )
Ex : list ( map ( lambda x : x+1 , [1,2,3,4,5] ) )
24. FILTER FUNCTION
It takes all items of a list and apply a function to it & returns a new filtered list.
Syntax : filter( function, sequence )
Ex : list ( filter ( lambda x : x%2 != 0 , [1,2,3,4,5,6] ) )
25. ENUMERATE FUNCTION
It is used to display output with index. We can enumerate as list, tuple, set, dictionary.
Syntax : enumerate( list )
Ex : list ( enumerate (‘apple’ , ‘mango’ , ‘orange’) )
26. ZIP FUNCTION
It is used to zip different iterators(lists) in one.
Syntax : z = zip(list1, list2, list3)
z = list(z) , print(z)
Example : A = [1,2,3] , B = [‘Ram’ , ‘Sham’ , ‘Shiva’] , C = [‘Delhi’, ‘Noida’, ‘Agra’]
z = zip(A, B, C) , z = list(z) , print(z)
27. UNZIP FUNCTION
Syntax : list1, list2, list3 = zip(*z)
Ex : A, B, C = zip(*z)
Embark on this enriching journey and unlock the vast potential of Python programming for diverse applications.
Who this course is for:
- Beginner Python Developers curious about Data Science
How to Get this course FREE?
Get a 100% Discount On Udemy Paid Courses by clicking on the Apply Here Button. This Course coupon code is automatically added to the Apply Here Button.
Apply this Coupon: PYTHON_FREE_JUNE27 (For 100% Discount)
For the Latest Udemy Courses Coupon, Join Our Official Free Telegram Group: https://t.me/coursejoiner
Note: The Udemy Courses Will be free for a Maximum of 1000 Learners can use the promo code AND Get this course 100% Free. After that, you will get this course at a discounted price. (Still, It’s a good deal for you to get this course at a discounted price).
External links may contain affiliate links, meaning we get a commission if you decide to make a purchase. Read our disclosure.