Conditional operators in python is same as any other programming language. They are the conditional expressions used to give the output according to the condition in the expression.
# Program to demonstrate conditional operator
a, b = 10, 20
# Copy value of a in min if a < b else copy b
min = a if a < b else b