It's time to become a Master Coder! We will build a game where the computer thinks of a secret number, and you have to guess it.
Import random and pick a number between 1 and 10.
import random secret = random.randint(1, 10) print(secret)
For finding bugs, print it!
Ask the player for a number. Remember int()!
guess = int(input("Guess a number (1-10): "))
Use if and else to check if guess == secret.
if guess == secret:
print("You won!")
else:
print("Try again!")