7 lines
158 B
Python
7 lines
158 B
Python
def addition(numbers):
|
|
total = 0
|
|
for number in numbers:
|
|
total = total + float(number)
|
|
return total
|
|
|
|
print(addition(['1.2', '2.6', '3.3'])) |