Question
Write a program that i. creates an empty dictionary and repeatedly prompts the person to type in different phrases AND the acronym for those phrases
Write a program that
i. creates an empty dictionary and repeatedly prompts the person to type in different phrases AND the acronym for those phrases and then stores it in the dictionary. For example, RAM is an acronym for "random access memory". so both will be asked and stored.
ii. then the program prompts the user to enter any random acronyms repeatedly, when the user enter an acronym that's not in the dictionary, it will print out the phrase for it. if it's not in the dictionary, it will print: " not found". and will keep prompting the user until the user ends the program
- The program should only accept uppercase for the dictionary and user input.
-if the user typed in the same acronym multiple times in step (i), the program should only store one.
This is a Python Program. Please explain your steps in the program and show the out put.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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