We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16e8b35 commit b6821d8Copy full SHA for b6821d8
05-6/reduce_test.py
@@ -0,0 +1,6 @@
1
+# reduce_test.py
2
+import functools
3
+
4
+data = [1, 2, 3, 4, 5]
5
+result = functools.reduce(lambda x, y: x + y, data)
6
+print(result) # 15 출력
0 commit comments