CSC110 / lectures / week05 / test.py
test.py
Raw
# value_so_far = 0
# for number in [11, 2, 3, 4]:
#     if number % 2 == 0:
#         value_so_far = value_so_far * number
#     else:
#         value_so_far = value_so_far + number
#     print(number)
#     print(value_so_far)

my_dict = {'a': 1, 'b': 2, 'c': 3}
for k in my_dict:
    print(k)