Ask
Search
Ask Question
Login
×
×
Welcome back.
and 5 others joined a min ago.
Continue with Google
Continue with email
0
6.5k
views
Write a python program to find the sum of all the elements of the list.
written
2.9 years ago
by
pedsangini276
•
4.8k
• modified 2.9 years ago
python programming
ADD COMMENT
FOLLOW
SHARE
EDIT
1 Answer
0
850
views
written
2.9 years ago
by
pedsangini276
•
4.8k
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.
Continue with Google
Continue with email
ADD COMMENT
SHARE
EDIT
Please
log in
to add an answer.
Community
Users
Levels
Badges
Content
All posts
Tags
Dashboard
Company
About
Team
Privacy
Submit question paper solutions and earn money