import random number = random.randint(1, 100) print(number) guess = int(input("Enter a guess: ")) if guess > 50: print("You win ") elif guess < number: print("You guessed too low ") else: print("You guessed too high")
Coder's Space
import random number = random.randint(1, 100) print(number) guess = int(input("Enter a guess: ")) if guess > 50: print("You win ") elif guess < number: print("You guessed too low ") else: print("You guessed too high")