Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def SecretNumber():
- GotIt = False
- while GotIt == False:
- One = int(input("Type a number between 1 and 10: "))
- Two = int(input("Type another number between 1 and 10: "))
- if (One >= 1) and (One <= 10):
- if (Two >= 1) and (Two <= 10):
- print('Your secret number is: ' + str(One * Two))
- GotIt = True
- continue
- else:
- print('Incorrect second value!')
- else:
- print("Incorrect first value!")
- print("Try again!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement