Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1.  
  2.  
  3. number = []
  4.  
  5.  
  6. num1 = int(input("Input a number"))
  7.  
  8. number.append(num1)
  9. print ("Your numbers are",number)
  10.  
  11. choice = str(input("Would you like to enter another number? Click y for yes and n for no"))
  12.  
  13.  
  14. if choice == "y":
  15. while choice == "y":
  16. num2 = int(input("Input a number"))
  17. number.append(num2)
  18. print("Your numbers are", number)
  19. 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