Answers for "sum an inputted list of numbers in python"

16

python sum of list

>>> list = [1, 2, 3]
>>> sum(list)
6
Posted by: Guest on January-27-2020
3

how to add list numbers in python

lst = []
num = int(input('How many numbers: '))
for n in range(num):
    numbers = int(input('Enter number '))
    lst.append(numbers)
print("Sum of elements in given list is :", sum(lst))
Posted by: Guest on August-18-2020

Code answers related to "sum an inputted list of numbers in python"

Python Answers by Framework

Browse Popular Code Answers by Language