Python Forum

Full Version: Lists Homework
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Write a function named get_strings to ask the user for a series of strings and to return a list where each string is an item in the list. The user indicates that they are finished entering items by entering empty string''for the last prompt.Save the functions in a PyDev library module named a7_functions.py Write a program named q1.py to test the function.
The output of the function is printed in one line.
As Sample run,
Enter item:1
Enter item: 30
Enter item:40
Enter item:50
Enter item:<--enter key with no item terminates data entry
['1', '30', '40', '50']
Ok, that's your assignment, show what you have done so far, and where you are having a problem.