Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #Kurtis Allman # 24/11/2014
  2. L = list() # specifies empty list.
  3. A = (input("\nType an item to add to your shopping list. type stop to finish.")) # waits for user input
  4. if A != ("stop"): # if the input dosent = stop -loop.
  5. L.append(A) # appends the users input to list "L"
  6. for A in L: # reads the most recent input in list "L"
  7. print (A) # prints what it read.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement