Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions listsum.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def lsum(n,ls):
the value of the variable sum can be upadated simultaneously
'''
sum=0
for i in range(0,n):
sum+=ls[i]
for ele in ls:
sum += ele
return sum


Expand Down