Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions