+ 1
{Solved ✅} I'm having trouble in Module Quiz 6 in Python.
Uhhh... how is this possible? print(max(min(nums[:2]), abs(-42))) Can someone explain this? I know the minimum part, but I don't get why 42 is incorrect when there is one number inside the max() function.
1 Resposta
+ 3
nums = (55, 44, 33, 22)
print(max(min(nums[:2]), abs(-42))))
so first so get the abstract of -42 and the value of nums[:2] which are 55 and 44.
( max( min(55,44) , 42 ) )
Then, get the minimum of 55, 44 (notice that these two numbers are together in one parentheses)
print ( max(44, 42) )
print ( 44 )
>>44