Create a function called lists_Sum(lists) that takes in a list of lists, each element in each sublist will be a number. Your function will return the product of all the numbers in the inner lists added together.
solve for python
EX. lists_sum ([[2,2],[3,5],[5,8]]) returns 59
def lists_sum(lists):
s=0
for list_data in lists:
pr=1
for i in list_data:
pr=pr*i
s=s+pr
return s
print(lists_sum([[2,2],[3,5],[5,8]]))
Get Answers For Free
Most questions answered within 1 hours.