PYTHON CODING
- waclaw_koscielniak

- Jul 7
- 1 min read
def pack(f):
def wrap(x): return (f(x), x)
return wrap
@pack
def square(x): return x ** 2
print(square(3)[1])
[Running] python3 -u "/Users/name/test/test39.py"
3
[Done] exited with code=0 in 0.051 seconds



Try to run it.