ternary operator in python

# Ternary expression syntax:
# value_if_true if condition else value_if_false
#
# Example:
a = True
b = "yes" if a else "no" # b will be set to "yes"

Here is what the above code is Doing:
1. It sets the value of a to True.
2. It sets the value of b to “yes” if a is True, otherwise it sets the value of b to “no”.
3. It prints the value of b.