Starting Point
This commit is contained in:
18
Pass1/Iteration.py
Executable file
18
Pass1/Iteration.py
Executable file
@@ -0,0 +1,18 @@
|
||||
#sneak in a little example of importing a library:)
|
||||
import os
|
||||
|
||||
list2 = ["foo","man","chu","Elvis"]
|
||||
|
||||
#iterating through a list
|
||||
for i in list2:
|
||||
print(i)
|
||||
|
||||
#iterating through a dictionary
|
||||
for j, k in os.environ.items():
|
||||
print("%s=%s" % (j,k))
|
||||
|
||||
launch = 10
|
||||
while launch > 0:
|
||||
print(launch)
|
||||
launch -= 1
|
||||
print("Blastoff!")
|
||||
Reference in New Issue
Block a user