cities = ['NY', 'LA', 'SF']
for city in cities:
print(city)
for city in cities:
phrase = 'I love ' + city
print(phrase)
for n in range(1,10):
print('The inverse of', n, 'is', 1.0/n)
for letter in 'Hello':
print(letter)
cities[0:2]
if city == 'NY':
print('Party')
else:
print('Work')
city = 'NY'
1 == 2
2 == 2
3 > 4
4 < 5
1 <= 2
1 != 2
1 >= 0
'Hello' == 'hello'
'Hello' == 'Hello'