Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a Python program that a user can modify their favorite movie, artist, song, and video game. The program will require 2 prompts, 1
Create a Python program that a user can modify their favorite movie, artist, song, and video game. The program will require 2 prompts, 1 for selecting the key and 1 for updating the value. The program must use at least 2 functions, one for the update and one for the input. The program should check to see if a key exists prior to the update and should continue to prompt a user to update until they decided to quit. The user can quit at any time. O You can use whatever value you want to quit, but ensure the user knows how to quit. You must use the default dictionary below. Print the dictionary values at the only at the start of the program and once the user quits. Your program should have no runtime errors. O Hint: make you handle case sensitivity. Please Note: you must enter the default values, and I will change them to my favorites. {"movie": "ENTER VALUE", "artist": "ENTER VALUE", "song": "ENTER VALUE", "video game": "ENTER VALUE"} Examples of output are below {'movie': 'Goodfellas', 'artist': 'Pink Floyd', 'song': 'Time', 'video game': 'Arkham City'} What value/s do you want to change? Movie, Artist, Song, Video Game: Movie New value: Godfather Movie, Artist, Song, Video Game: Video Game New value: Castlevania Movie, Artist, Song, Video Game: q Final Value {'movie': 'Godfather', 'artist' : 'Pink Floyd', 'song': 'Time', 'video game': 'Castlevania'}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Based on the instructions provided here is a possible Python program that you can use to meet the re...Get Instant Access to Expert-Tailored Solutions
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