Problem 1:

Use a dictionary to store information about a favorite movie. Include movie title, rating, director, and the year it was released. Include two other pieces of information about the movie of your choosing.

Problem 2:

Create a dictionary that stores item number, product name, and pricing information for a product of your choosing. Write code that will take the current price, increase it by 30% and store the updated price back into the dictionary.

Then print a message that the price of the item has been increased by 30%. Include the name of the product in your message.

Problem 3:

Using the dictionary you created in problem 6-1, print out all of the keys and values in your dictionary using a loop.

Problem 4:

Create a list of 3 or more dictionary items. Each dictionary item should contain a word and its definition. Make sure each dictionary item is stored in the format discussed in the lecture.

Once you have created your list, loop through each item in it and neatly print out each word/definition pair (do not just print the dictionary item directly).

Problem 5:

Start with the dictionary you created for problem 6-1. Add a key to it that stores a list of actors/actresses who appear in the movie. Add 4 names to this list.

Then, loop through the list of names and print them out, each on its own line.

Problem 6:

Write a program that asks a user what their favorite restaurant is. Then, print a message saying something like, "Let me help you find the closest ."

Problem 7:

Write a program that asks a user for two numbers, multiplies them together, and then prints out the result of the multiplication operation.

Problem 8:

Write a while loop that asks a user what they are having for dinner. As they add items, add them to a list. Make sure you include a way for a user to break the loop.

Once the loop has finished executing, print out the items in the list.

Problem 9:

A carnival has three rides. In a while loop, ask the user which ride they would like to go on. If it's the Ferris Wheel, print a message asking the user for $2. If it's the tilt-a-whirl, print a message asking the user for $3. If it's the pirate ship, printing a message asking the user for $3.50. If the ride wasn't found, print a message that the ride wasn't found.

Be sure to include a way for a user to break the loop.

Problem 10:

Create a list of items you think you will need the next time you go to the grocery store. Have one item appear multiple times.

Pretend that you decided not to purchase the item that appears multiple times. Loop through each item in your original list using a while loop and remove all instances of this item.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.