how to use ternary operater in python

a, b = 10, 20
# Copy value of a in min if a < b else copy b 
min = a if a < b else b 

Here is what the above code is Doing:
1. We have declared two variables a and b.
2. We have assigned values 10 and 20 to them respectively.
3. We have declared a third variable min.
4. We have used the ternary operator to check if a is less than b or not. If it is, we have assigned the value of a to min. If not, we have assigned the value of b to min.
5. Finally, we have printed the value of min.