Code :-
print("enter element of list")
mylist = list(map(int, input().split()))
sum = 0
for i in mylist:
sum = sum + i
print("sum of all element is", sum)
Output:-
enter element of list
12 3 4 5 6 7 8 8 9
sum of all element is 62
Code :-
Output:-
0 Comments