Skip to content

Commit fb51cbe

Browse files
committed
exercício operação de acumular
1 parent 6119370 commit fb51cbe

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
def accumulate(collection, operation):
2-
pass
2+
result = []
3+
for item in collection:
4+
result.append(operation(item))
5+
return result

0 commit comments

Comments
 (0)