Exercise 6-9: Favorite Places: Make a dictionary called favorite_places. Think of three names to use as keys in the dictionary, and store one to three
Exercise 6-9: Favorite Places: Make a dictionary called favorite_places. Think of three names to use as keys in the dictionary, and store one to three favorite places for each person. Loop through the dictionary, and print each persons name and their favorite places. ------------------------------------------------------------ Exercise 6-10: Favorite Numbers: In exercise 6-2, you used a dictionary to store peoples favorite numbers by having five names that will be used as keys in your dictionary. And having a favorite number for each person where each number will be used as a value in your dictionary. In this exercise, modify your program so each person can have more than one favorite number. Then print each persons name along with their favorite numbers. ------------------------------------------------------------ Exercise 6-11: Cities: Make a dictionary called cities. Use the names of three cities as keys in your dictionary. Create a dictionary of information about each city and include the country that the city is in, its approximate population, and one fact about that city. Print the name of each city and all of the information you have stored about it.
i need the correct answer in python fast please
Step by Step Solution
There are 3 Steps involved in it
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started