Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- number = []
- num1 = int(input("Input a number"))
- number.append(num1)
- print ("Your numbers are",number)
- choice = str(input("Would you like to enter another number? Click y for yes and n for no"))
- if choice == "y":
- while choice == "y":
- num2 = int(input("Input a number"))
- number.append(num2)
- print("Your numbers are", number)
- choice = str(input("Would you like to enter another number? Click y for yes and n for no"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement