Project: Dictionary-based Vocabulary Builder
Part 1: Word Definition Lookup (1 hour) - Create a dictionary of words and their definitions. - Implement a function that takes a word as input and returns its definition from the dictionary. - Test the function with a few sample words.
Part 2: Word Addition (1 hour) - Implement a function that allows the user to add new words and their definitions to the dictionary. - Prompt the user to enter a word and its definition. - Add the word and definition to the dictionary. - Test the function by adding a few new words and checking if they are present in the dictionary.
Part 3: Word Removal (1 hour) - Implement a function that allows the user to remove words from the dictionary. - Prompt the user to enter a word to be removed. - Remove the word and its definition from the dictionary. - Test the function by removing a few words and checking if they are no longer present in the dictionary.
Part 4: Word Quiz (1 hour) - Implement a function that quizzes the user on the definitions of random words from the dictionary. - Randomly select a word from the dictionary and display its definition. - Prompt the user to enter their answer. - Check if the user’s answer matches the actual definition and provide feedback. - Repeat the quiz for a few words.
Part 5: Word Search (1 hour) - Implement a function that allows the user to search for words in the dictionary based on a given keyword. - Prompt the user to enter a keyword. - Display all the words from the dictionary that contain the keyword. - Test the function by searching for words with different keywords.
Note: The time estimates provided for each part are approximate and may vary based on individual coding speed and complexity of implementation.
Loading...