Math, asked by abhayajayan1, 3 months ago

write down the python program to calculate the values of list ​

Answers

Answered by bhumiraj1234
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