Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Python 101 create list challenge
- how_many = int(input("How many items of shopping do you have? "))
- shopping = []
- for item_number in range(how_many):
- item = input("What is item number " + str(item_number+1) + "? ")
- shopping.append(item)
- print("\nThe items in your list are:")
- for item in shopping:
- print(item)
- print("You have " + str(how_many) + " items in your complete list:\n" + str(shopping))
Advertisement
Add Comment
Please, Sign In to add comment