Answers for "ternary operator_simple"

0

ternary operator_simple

# 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
  
print(min)
Posted by: Guest on August-05-2021

Browse Popular Code Answers by Language