The big little idea
Let’s combine input, numbers, and decisions into a tiny guessing game. A program is often a collection of little ideas you already understand.
secret = 7
guess = int(input())
if guess == secret:
print("You found it!")
elif guess < secret:
print("Try a bigger number.")
else:
print("Try a smaller number.")Use int(input()) to turn an answer into a number. An elif branch checks another condition when the previous one was False. This version gives one guess per run; change the input and run again for a new guess.