subject

Your code should include:

4 functions - menu(), random_word(), remove_word(), print_list()

menu() - prints the menu choices the user can perform
random_word() - selects a random word from the list, prints the random word.
remove_word(word) - removes the word that the user wants to remove from the list.
print_list() - prints the list
Add a new function to the program:

add_word(word) - adds a word the user wants to add to the list.
Your code should continuously ask the user for a command to perform from the menu until the user is finished using your randomizer.

Your code should make sure the user can only type valid commands from the menu.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:40
Adna sequence encoding a five-amino acid polypeptide is given below. …… …… locate the sequence encoding the five amino acids of the polypeptide, and identify the template and coding strand.
Answers: 1
question
Computers and Technology, 22.06.2019 11:30
Andrina writes letters that are regularly sent to hundreds of her company’s customers. because of this, she would like for the mail merge command to be in her quick access toolbar, and she wants it to be the first button on the left. what should andrina do to place the mail merge button there?
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
The option enables you to modify a slide element in most presentation applications.
Answers: 2
question
Computers and Technology, 24.06.2019 00:20
Describe a data structures that supports the stack push and pop operations and a third operation findmin, which returns the smallest element in the data structure, all in o(1) worst-case time.
Answers: 2
You know the right answer?
Your code should include:

4 functions - menu(), random_word(), remove_word(), print_list...
Questions
question
Chemistry, 28.02.2020 19:52