PYTHON CODINGJun 23, 20251 min readdef factory(n): return lambda x: x ** nsquare = factory(2)cube = factory(3)print(square(3), cube(2))[Running] python3 -u "/Users/name/test/test37.py"9 8[Done] exited with code=0 in 0.053 seconds#Python #PythonCodingDid you guess it correctly?
Did you try it?