Question: Only in Python 5. Write a script that creates a dictionary of name-age pair. Add some entries to your dictionary. Add a menu to support

Only in Python
5. Write a script that creates a dictionary of name-age pair. Add some entries to your dictionary. Add a menu to support ADD, REMOVE, SERACH, AGE INCREASE, PRINT operations. The "Age Increase" option increases the age by 1 for all the entries in the dictionary. Test the four operations. Show testing screenshot. Running Example: {"John': 34, 'Amy:59. Bob: 26. 'Gorge': 60} Operations 1. Search 2. Add 3. Remove 4. Age Increase 5. Print Dictionary 6. Exit Select 1-5:1 Enter name to search: Bob Bob 26 Operations 1. Search 2. Add 3. Remove 4. Age Increase 5. Print Dictionary 6. Exit Select 1-5: 2 Enter name: Allen Enter age: 45 {"John': 34, 'Amy:59, Bob: 26, Gorge': 60, 'Allen': 45} Operations 1. Search 2. Add 3. Remove 4. Age Increase 5. Print Dictionary 6. Exit Select 1-5:3 Enter name: Amy {"John': 34, 'Bob' 26, Gorge': 60, 'Allen': 45} Operations 1. Search 2. Add Remove 4. Age Increase 5. Print Dictionary 6. Exit Select 1-5:4 {'John' 35, 'Bob' 26, "Gorge': 60, 'Allen': 45} Operations 1. Search 2. Add 3. Remove 4. Age Increase 5. Print Dictionary 6. Exit Select 1-5: 5 John 35 Bob 27 Gorge 61 Allen 46 Operations 1. Search 2. Add Remove 4. Age Increase Print Dictionary 6. Exit Select 1-5: 6 Goodbye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
