Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shopping=[]
- total_items=input("how many items do you have?")
- for itemcount in range(int(total_items)):
- item=input("please enter item number "+str(itemcount+1))
- shopping.append(item)
- print(" ")
- print("shopping list")
- print("-------------")
- count=0
- for item in shopping:
- count=count+1
- print(str(count)+". "+item)
- print
- print ("no of items "+str(count))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement