Nov-19-2017, 03:00 AM
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']
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']