d = {'Mark': 100.0, 'Peter': 50.0, 'John': 25.0}for i, j in d.items(): print (i + ' pays ' + str(j)) code example
Example: d = {'Mark': 100.0, 'Peter': 50.0, 'John': 25.0}for i, j in d.items(): print (i + ' pays ' + str(j))
d = {'Mark': 100.0, 'Peter': 50.0, 'John': 25.0}
for i, j in d.items():
print (i + ' pays ' + str(j))