if, else, and elif 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
A conditional expression has the following form:
<expr_t> if <condition> else <expr_when_f>
Example:
x=5 if a<10 else x=6