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 =5if a <10else x =6