write down the python program to calculate the values of list
Answers
Answered by
1
Step-by-step explanation:
•Read input number asking for length of the list using input() or raw_input().
•Initialise an empty list lst = [].
•Read each number using a for loop.
•In the for loop append each number to the list.
•Now we use predefined function sum() to find the sum of all the elements in a list.
•Print the result.
HOPE MY ANSWER HELPED YOU!
Attachments:
Similar questions
Math,
1 month ago
Math,
1 month ago
Math,
1 month ago
Science,
3 months ago
Social Sciences,
9 months ago