Write a function that returns sum of all elements in the list


Topic: Write a function that returns sum of all elements in the list

Solution

def sum_elements(l:list):
    return sum(l)



List all Python Programs