From c3b1211325469dd9e1c2a35f78db16e1acde2bb8 Mon Sep 17 00:00:00 2001 From: HTGA75 Date: Tue, 30 Dec 2025 21:56:52 +0530 Subject: [PATCH] Fix reduce import location for Python 3 compatibility --- python_sandbox_finished/map, filter and reduce.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_sandbox_finished/map, filter and reduce.py b/python_sandbox_finished/map, filter and reduce.py index 67be924..ad59e6e 100644 --- a/python_sandbox_finished/map, filter and reduce.py +++ b/python_sandbox_finished/map, filter and reduce.py @@ -1,5 +1,5 @@ -from setuptools import reduce #importing reduce module for using reduce function +from functools import reduce #importing reduce module for using reduce function l1 = [2,3,4,5,6]