If / If Else
For information on how to write conditions, see Conditional Expressions.
If Statements¶
If statements use the if
keyword followed by a condition wrapped in parentheses:
Else¶
Else statements can be placed immediately after an if statement using the else
keyword: