@MatthewWellingt/

Challenge 24

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
import random
guess=""
print("I've thought of a number between 1 and 10. Try to guess it.")
randomNumber = random.randrange(1,10)
while guess !=randomNumber:
  guess=int(input("Guess the number! "))
  print("You got it wrong!")
input("Well done! Press any key to exit.")