printPrint min of two numbers

Question

Print the minimum of two numbers using conditional operators.

in progress 0
YashikaKhurana 4 years 2 Answers 836 views Master 0

Answers ( 2 )

  1. print( (b, a) [a < b] )

  2. x, y = 67, 78
    print(x if x<y else y)

Leave an answer

Browse
Browse