While Python already has if statement, it also has a separate conditional expression just like C-like languages:

x if condition else y

Conditional expressions can also be chained:

x if condition1 else y if condition2 else z