0
6.5kviews
Write a python program to find the sum of all the elements of the list.
1 Answer
0
850views

Explanation

  • Create a variable n which stores the no of elements user wants to add to the list.
  • Iterate for loop n times and take the elements entered from the user and append them to a list l.
  • Initialize the variable total as 0.
  • Iterate over the list and add …

Create a free account to keep reading this post.

and 4 others joined a min ago.

Please log in to add an answer.