Advertisement
KodingKid

Python Random Number Guessing Game

Apr 11th, 2021
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. import random
  2. for x in range(1):
  3.   random_number = random.randint(0,100000)
  4. print("Try to guess the random number.")
  5. input()
  6. if input == random_number:
  7.     print("Well done! You guessed the random number correctly!")
  8. else:
  9.     print("No. That is incorrect.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement