Function called word_dictionary() Solved

20.00 $

Categories: ,
Click Category Button to View Your Next Assignment | Homework

You'll get a download link with a: py solution files instantly, after Payment

Securely Powered by: Secure Checkout

Description

5/5 - (2 votes)

Create a function called word_dictionary() to keep track of the new words and meanings you are learning. It allows you to enter new words, and a meaning for each word.When you run the program:It prints a greeting message with the name of your program, and prompts user to enter a integer from 1 to 3 for the following options:
Option 1: user can see all words and meanings that have been entered so far. If user has not entered any words, print message “There’s no word in the dictionary yet”
Option 2: prompt user to enter a new word, then prompt user to enter the meaning.
Your program must not allow duplicate entries.
Your program should store all entered words and meanings into a dictionary data structure
Option 3: allows user to search for a word. If the word exists in the dictionary, then display the meaning; otherwise print message “Word not found”.
Program should use loop or recursive function to keep prompt for user input, until user choose to exit. Program should provide option for user to exit, for example, enter 0, or enter “q”

  • word_dictionary.py