Question
Exercise 1 (5 points): Create a function called word_dictionary() to keep track of the new words and meanings you are learning. It allows you to
Exercise 1 (5 points):
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: protmp 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"
Exercise 2 (5 points):
Write a function called student_scores()
A student can earn a score between 1 and 5 for a particular course; nothing lower, nothing higher. All scores are integer values.
Store the possible scores a student can earn in a tuple.
Print out the sentence, "The lowest possible score is ___, and the highest possible score is ___." Use the values from your tuple.
Traverse the tuple and print out a series of sentences, "A student can get _ points."
[checkpoint]: submit your python code in text format (.py file is fine), and your capture of the running program with output in text format (word document ) as an attachment here. Put the python code and capture of the output of each individual exercise into separate files. For example, lab7_2_exercise1.py, lab7_2_exercise2.py
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