Python Forum
Lists Homework - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: Lists Homework (/thread-6373.html)



Lists Homework - kekev1997 - Nov-19-2017

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']


RE: Lists Homework - Larz60+ - Nov-19-2017

Ok, that's your assignment, show what you have done so far, and where you are having a problem.