Advertisement
KodingKid

Python Random Number Guessing Game (with extra added features!)

May 18th, 2021
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. import random
  2. number = random.randint(10,1000)
  3. guess = input()
  4. if (guess > number):
  5.     print("Lower!")
  6.     break
  7. if (number > guess):
  8.     print("Higher!")
  9.     break
  10. if else:
  11.     print("Well done! You guessed the number correctly!")
  12.     break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement