1. Write a function called list_total to calculate the sum of thelist of floating-point data type. Then use the function to calculate thefollowing list. [12.5, 20.2,2.48, 4.5] [3.3, 4.5, 2.6,2.8, 4.5] [4, 4.5, 4.6,2.6] List_total(alist) The return value is the sum of the alist
如何定义一个sum函数求和
|