summ= lambda total: reduce(operator.add, total) print(summ(total))
Has a typo, summ
summ
In all, you a lambda function. I don't remember the last time I did use a lambda function.
pardon me, I mistook summ as a typo for sum, which is a built-in function that performs the same functionality as the summ. I run your code not long from now.
sum
summ= lambda total: reduce(operator.add, total)
was translated
def summ(total): return reduce(operator.add, total)
In all, all is good. Thanks!!
yeah that's cool
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Has a typo,
summ
In all, you a lambda function. I don't remember the last time I did use a lambda function.
pardon me, I mistook
summ
as a typo forsum
, which is a built-in function that performs the same functionality as thesumm
. I run your code not long from now.was translated
In all, all is good. Thanks!!
yeah that's cool