{Solved ✅} I'm having trouble in Module Quiz 6 in Python. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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.

7th Dec 2020, 12:56 AM
:DD
:DD - avatar
1 Answer
+ 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
7th Dec 2020, 1:09 AM
noteve
noteve - avatar