0

Is there a difference between sum(x) and x.sum() when x is a list or an array ?

6th Aug 2022, 6:50 AM
Nicolas Leonetti
Nicolas Leonetti - avatar
1 Antwort
+ 2
sum(x) returns sum of elements in list x. x.sum() is invalid for list.
6th Aug 2022, 7:32 AM
Jayakrishna 🇮🇳