Skip to content
Advertisement

sum multiple list elements at the same time(python)

How can I sum multiple list elements at the same time? For example, something like this in Python:

Our lists (input):

JavaScript

Output:

JavaScript

Note: we don’t know how many list will be given to us.

Advertisement

Answer

This should do the job

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement