Python/CheatSheet
Appearance
< Python
If Then Else
if x < 0:
print('Negative')
elif x == 0:
print('Zero')
else:
print('More')
For loops
for x in ['cat', 'dog', 'bird']:
print (w)
if x < 0:
print('Negative')
elif x == 0:
print('Zero')
else:
print('More')
for x in ['cat', 'dog', 'bird']:
print (w)