text_plain_output_1.png
d = {'cat': 'cute', 'dog': 'furry'}

del d['fish']

d = {'person': 2, 'cat': 4, 'spider': 8}
for animal in d:
    legs = d[animal]

d = {'person': 2, 'cat': 4, 'spider': 8}
for animal, legs in d.items():
    print('A %s has %d legs' % (animal, legs))