def Main1():
for X in [3,9,"Frog",True,6.2]:
print (X)
return
def Main2():
for X in range(10):
print (X)
return
def Main3():
for X in "Frog":
print (X)
return
def Main4(Wakkawakka): # Wakkawakka is a list, string, or tuple
for X in Wakkawakka:
print (X)
return
def Main5():
L = []
for X in "Frog":
L = L + [X]
return L
def Main6():
L = ""
for X in "Frog":
L = X + L
return L
def Main7(S): # S is a string
L = ""
for X in S:
L = X + L
return L
def Main8(S): # S is a list of anything
L = []
for X in S:
L = [X] + L
return L
def Main9(L): # L is a list of numbers
Total = 0
for X in L:
Total = Total + X
return Total
def Main10(): # Same as L = [X*X for X in range(10)]
L = []
for X in range(10):
L = L + [X*X]
return L
def Main11(): # Same as L = [X*X for X in range(10) if X % 2 == 1]
L = []
for X in range(10):
if X % 2 == 1:
L = L + [X*X]
return L