On 21/02/2023 04:13, Hen Hanna wrote:

                 (A)   print( max( * LisX ))
                 (B)   print( sum( * LisX ))        <------- Bad syntax !!!

What's most surprising is....     (A)  is ok, and  (B) is not.

            even tho'   max() and sum()  have   (basically)  the same syntax... 
 ( takes one arg ,  whch is a list )



i've been programming for many years...        ( just knew to Python )

LOL, python is full of surprises. I'd definitely step into the same piece of... Someday.

Of course 'Builtin functions' section explains that, but the inconsistency is weird.

My response is absolutely useless, just two cents on the issue. Maybe someone will fix that.

Axy.
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to