@FreddyChelsom/

LightcyanBlondClient

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
import random
random_number= random.randint(0,100)
guess_counter= 0
my_number= input("Guess a Number between 0 and 100!")
guess_counter= guess_counter+1
if random_number== my_number:
  print('Well done you guessed it!')
  print (" your number of guesses was ('guess_counter')")
while my_number < random_number:
  my_number= input("Too low! Have another go.")
while my_number > random_number:
  my_number= input("Too high! Have another go.")