Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shopping=[]
- how_many=input("How many items of shopping are needed?")
- how_many=int(how_many)
- for item_number in range(how_many):
- item=input("What is item number" + str(item_number) + "?")
- shopping.append(item)
- print(shopping)
- print("This is my updated list:")
- for item in shopping:
- print(item)
- count=0
- for item in shopping:
- print(item)
- count=count +1
- print (count)
- print("items in my shopping list")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement