Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Kurtis Allman # 24/11/2014
- L = list() # specifies empty list.
- A = (input("\nType an item to add to your shopping list. type stop to finish.")) # waits for user input
- if A != ("stop"): # if the input dosent = stop -loop.
- L.append(A) # appends the users input to list "L"
- for A in L: # reads the most recent input in list "L"
- print (A) # prints what it read.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement