Skip to content

Update list_sum.py#1

Open
SushmitaY wants to merge 1 commit intoavinash-ducs:masterfrom
SushmitaY:patch-1
Open

Update list_sum.py#1
SushmitaY wants to merge 1 commit intoavinash-ducs:masterfrom
SushmitaY:patch-1

Conversation

@SushmitaY
Copy link
Copy Markdown

Changes to function lsum()

Remove parameter 'n' i.e the length of the list and update the loop construct as follows:

for ele in ls:
sum += ele

Changes to function lsum()

Remove parameter 'n' i.e the length of the list and update the loop construct as follows:

for ele in ls:
    sum += ele
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant