Explanation of code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Explanation of code

I don't understand this? nums = (55, 44, 33, 22) print(max(min(nums[:2]), abs(-42))) Answer is 44.

26th Mar 2020, 7:59 PM
Byron Fausset
Byron Fausset - avatar
1 Answer
0
nums[:2] =(55, 44) //index values 0 to 1 (2 not included) abs(-42)=42 min(nums[:2]=44 max(44,42)=44 print(44)
26th Mar 2020, 8:04 PM
Jayakrishna 🇮🇳