0
Can we use print(max(min(55,44,42)? Like max at min in same operation.
nums=[55,44,33,22] print(max(min(nums[:2],abs(-42)))) Ans : 44 from model quiz of SoloLearn
1 Answer
0
Yes. But you need 2 arguments there atleast..
nums[:2]returns 55,44 and abs(-42) returns 42
So min(55,44) returns 44
And max(44,42) returns 44.
And print( max(min(55,44),42)) is valid.