While Python already has if statement, it also has a separate conditional expression just like C-like languages:
x if condition else yConditional expressions can also be chained:
x if condition1 else y if condition2 else zWhile Python already has if statement, it also has a separate conditional expression just like C-like languages:
x if condition else yConditional expressions can also be chained:
x if condition1 else y if condition2 else z