Exercise: Leap Year in One Line
Use a ternary expression to assign one of two string labels to result. The condition itself requires
and and or to combine the three divisibility checks that make up the leap-year rule.Premium
Python
Setting up Python environment... Output