Computer Science, asked by brajkishormullick, 4 months ago

b) To calculate sum of integers of the list.​

Answers

Answered by asinsarabiga
1

Answer:

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.

Similar questions