Conduct program that creates dictionary from vocabulary list


Problem

Conduct a program that creates a dictionary from a vocabulary list (formatted in a file similar to vocablist.txt). If the user-entered file name does not exist, the program should catch the error and re-prompt for a file name.

After the file is read in successfully, the program should use the "term" as the key and "definition" as the value. The program should then ask the user if he/she would like to add additional terms and definitions, and how many if "Y" is the response. If the user enters a negative non-integer value, the program will prompt the user again for an integer value. The program should then prompt the user for as many terms and definitions as needed.

The program should ask again if the user would like to add additional terms and definitions. Again, the program will ask "how many" if "Y" is the response. The program should loop between asking if the user would like to add additional terms and definitions, and how many, until the user types "N" for No.

If a duplicate term (key) is entered, the program will notify the user that the term is already in the dictionary. It will ask if the user would like to update the definition BEFORE asking for a definition.

The program should end by printing the list of terms and definitions before asking the user for a file name to save the new dictionary. DO NOT SAVE OVER THE ORIGINAL TEXT FILE UNLESS ENTERED BY THE USER. You may assume that the file will be a .txt file (with text separated by tabs "\t").

Request for Solution File

Ask an Expert for Answer!!
Python Programming: Conduct program that creates dictionary from vocabulary list
Reference No:- TGS03268210

Expected delivery within 24 Hours