Solution 1.5
me = {'name':'Jon','age':21,'house':33,'street':'Banana Drive'}
for key in me:
print(key, ": ", me[key])
or, if you wanted to be fancy…
for key, value in me.items():
print(key, ' : ', value)
me = {'name':'Jon','age':21,'house':33,'street':'Banana Drive'}
for key in me:
print(key, ": ", me[key])
or, if you wanted to be fancy…
for key, value in me.items():
print(key, ' : ', value)