Tagged: if-statements
Everything tagged "if-statements", newest first.
Python Coding Exercise #20: What to Wear Tomorrow
A beginner Python exercise on comparison conditions — turn "over 20, 10 or 5 degrees" into the right if statements, learn how to pick between <, <=, > and >=, and practise with boundary values.
Python Coding Exercise #15: Order of Magnitude
A beginner Python exercise on separate if statements — print every "smaller than" message that applies to a number, and see why using elif here would give the wrong output.