cool_beasts = {"octopuses":"tentacles", "dolphins":"fins", "rhinos":"horns"} for ___ in cool_beasts.items(): print("{} have {}".format(___)) 1

cool_beasts = {“octopuses”:”tentacles”, “dolphins”:”fins”, “rhinos”:”horns”} for ___ in cool_beasts.items(): print(“{} have {}”.format(___))

cool_beasts = {"octopuses":"tentacles", "dolphins":"fins", "rhinos":"horns"}
for ___ in cool_beasts.items():
    print("{} have {}".format(___))

Here is what the above code is Doing:
1. We create a dictionary called cool_beasts.
2. We create a for loop that iterates over the items in cool_beasts.
3. We print out the key and value of each item in cool_beasts.

Fill in the blanks to make the code work!

Similar Posts