Bryce H.

asked • 02/02/23

how to code this in python

Create a dictionary of technical terms and allow the user to lookup the definitions of these terms from the dictionary. Use the following list for your dictionary:

'dict', 'list', 'map', or 'set'

 

You can use the following resource:

dict = “stores a key/value pair”

list = “stores a value at each index”

map = “see dict”

set = “stores unordered unique elements”

 

Based on the user's input, print the term and the definition.

Make “exit” a term in the dictionary. Prompt the user to enter a term inside a while loop until the user types the word “exit”.


1 Expert Answer

By:

EDWARD A. answered • 02/02/23

Tutor
5.0 (283)

PhD Data Scientist & AI Specialist: R, Python, Tableau, Bioinformatics

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.