🎮 Build a Mini Game!
Now you know variables, input, if statements, loops and functions — enough to build a real mini game! Combine everything to create something interactive and fun.
⚙ Solution
secret = 7
print("🎮 Guess the number between 1 and 10!")
guess = int(input("Your guess: "))
if guess == secret:
print("🎉 Amazing! You got it!")
elif guess < secret:
print("Too low! The answer was", secret)
else:
print("Too high! The answer was", secret)