Please enable JavaScript.
Coggle requires JavaScript to display documents.
Python Udemy course - Coggle Diagram
Python Udemy course
-
-
Control flow
-
elif
if some_condition:
tab execute some code
elif some_other_condition:
tab do something different
else:
tab do something else
else
if some_condition:
tab execute some code
elif some_other_condition:
tab do something different
else**:**
tab do something else
-
-
Loop
For
my_iterate = [1,2,3]
for (variable name can be anything) in my_iterate:
tab print(item name)
my_iterate = [(1,2),(3,4)]
for (variable name can be anything) in my_iterate:
tab print(item name)
Tuples will be printed as packed values
my_iterate = [(1,2),(3,4)]
for (variable name can be anything) in my_iterate:
tab print(item name)
Tuples will be printed as packed values
-
-