Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shopping = ["Bread","Milk","Chesse","Tomatoes","Water"]
- y = len(shopping)
- y_str = str(y)
- print("The number of items in your shopping ist is " + y_str)
- count = 0
- item_no = 1
- for items in shopping:
- item_no_str = str(item_no)
- print(item_no_str + ")" + items + " -->Bought")
- count = count + 1
- item_no = item_no + 1
- count_str = str(count)
- print("The number of items bought are " + count_str)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement