Aug-29-2021, 06:06 PM
(This post was last modified: Aug-29-2021, 06:06 PM by coder_sw99.)
Hello,
If two iterable objects are put
in the max or min function, then the sum of both iterables is calculated and the
iterable with the biggest sum will be outputted.
Thats how I understand how max() and min() works with more then one iterable object
If two iterable objects are put
in the max or min function, then the sum of both iterables is calculated and the
iterable with the biggest sum will be outputted.
Thats how I understand how max() and min() works with more then one iterable object
t1 = 2,1,3 t2 = 1,3,1,5 print("Max. Value:", max(t1,t2)) print("Min. Value:", min(t1,t2))
Output:Max. Value: (2, 1, 3)
Min. Value: (1, 3, 1, 5)
I don“t quite understand then why t1 is max and t2 is min