Skip to content

Commit c0ba75a

Browse files
authored
1 parent 4109f40 commit c0ba75a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sum_elements_list.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
__author__ = 'Avinash'
2+
3+
lst = []
4+
num = int(input('How many numbers: '))
5+
for n in range(num):
6+
numbers = int(input('Enter number '))
7+
lst.append(numbers)
8+
print("Sum of elements in given list is :", sum(lst))

0 commit comments

Comments
 (0)