Python how to write a Ternary Operator? Multiple Examples Explained