Python/basics.py
2020-02-03 13:58:09 +00:00

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']))