python-CSD-kursu/python-temel/return.3.py
2023-05-23 09:08:18 +03:00

8 lines
No EOL
139 B
Python

def gettotal(l):
total = 0
for i in l:
total += i
return total
result = gettotal([1, 2, 3, 4, 5])
print(result)