Python 3에서 필터, 맵 및 축소 사용 방법 filtermap그리고reduce파이톤 2에서 완벽하게 작동하다.예를 들면 다음과 같다. >>> def f(x): return x % 2 != 0 and x % 3 != 0 >>> filter(f, range(2, 25)) [5, 7, 11, 13, 17, 19, 23] >>> def cube(x): return x*x*x >>> map(cube, range(1, 11)) [1, 8, 27, 64, 125, 216, 343, 512, 729, 1000] >>> def add(x,y): return x+y >>> reduce(add, range(1, 11)) 55 그러나 Python 3에서는 다음과 같은 출력을 받는다. >>> filter(f, range(..