The basics · Decisions
Making decisions
An `if` chooses; an `elif` chain chooses exactly one. · 8 minutes
Predict first
What does this print?
1temperature = 302if temperature > 10:3print("mild")4elif temperature > 25:5print("hot")6else:7print("cold")