Challenge: Implement Multiple Routines

Test yourself by implementing multiple routines.

Problem statement

Write a program where you do the following:

  1. Define a routine named give_a_word that prompts the user to give a word.

  2. Define a routine named display that outputs the content of a collection.

  3. Ask for 5 words and display the words using the above methods.

Sample input

Get hands-on with 1200+ tech skills courses.