Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- how_many = int(input("How many items are needed? "))
- shopping = []
- for item in range(how_many):
- listitem = input("What is the item? ")
- shopping.append(listitem)
- print ("Here is your finished list: ")
- for item in range(how_many):
- print(shopping[item])
- print("You have added " + str(how_many) + " items to your list.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement