Computer Science, asked by HariniShan, 10 months ago

Write a function in python to find the sum of the square root of elements in a list . The list is received as an augment to the function, in turn, the function must return the sum . Write the main program which invokes
the above function.

Answers

Answered by srt3016
0

Answer:

Explanation:Given a list of numbers, write a Python program to find the sum of all the elements in the list.

Example:

Input: [12, 15, 3, 10]

Output: 40

Input: [17, 5, 3, 5]

Output: 33

Answered by bsjaura22
0

Answer:

# Python program to find sum of elements in list

total = 0

  

# creating a list

list1 = [11, 5, 17, 18, 23] 

  

# Iterate each element in list

# and add them in variale total

for ele in range(0, len(list1)):

    total = total + list1[ele]

  

# printing total value

print("Sum of all elements in given list: ", total)

Output:

Sum of all elements in given list: 74

Similar questions