Computer Science, asked by bathnotrarahul6, 1 month ago

Write a user-defined program to calculate the sum of elements of a list​

Answers

Answered by themrmindless
2

Answer:

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)

Similar questions