Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- number = random.randint(10,1000)
- guess = input()
- if (guess > number):
- print("Lower!")
- break
- if (number > guess):
- print("Higher!")
- break
- if else:
- print("Well done! You guessed the number correctly!")
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement