Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. def SecretNumber():
  2. GotIt = False
  3. while GotIt == False:
  4. One = int(input("Type a number between 1 and 10: "))
  5. Two = int(input("Type another number between 1 and 10: "))
  6.  
  7. if (One >= 1) and (One <= 10):
  8. if (Two >= 1) and (Two <= 10):
  9. print('Your secret number is: ' + str(One * Two))
  10. GotIt = True
  11. continue
  12. else:
  13. print('Incorrect second value!')
  14. else:
  15. print("Incorrect first value!")
  16. print("Try again!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement