Write a user-defined program to calculate the sum of elements of a list
Answers
Answered by
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