if, else, and elif Statements

Read this for more on conditional statements.

10. Conditional expressions

A conditional expression has the following form:

<expr_t> if <condition> else <expr_when_f>

Example:

x=5 if a<10 else x=6