Advertisement
Guest User

Untitled

a guest
Dec 15th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. how_many = int(input("How many items are needed? "))
  2.  
  3. shopping = []
  4.  
  5. for item in range(how_many):
  6. listitem = input("What is the item? ")
  7. shopping.append(listitem)
  8.  
  9. print ("Here is your finished list: ")
  10. for item in range(how_many):
  11. print(shopping[item])
  12.  
  13. print("You have added " + str(how_many) + " items to your list.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement