Download python/closures.py from neopilot/PyRs2: direct link, hf CLI and curl.
- Browser
- Download file 124 Bytes
-
https://huggingface.co/datasets/neopilot/PyRs2/resolve/main/python/closures.py
- Command line
-
hf download hf://datasets/neopilot/PyRs2/python/closures.py
-
curl -L -o closures.py https://huggingface.co/datasets/neopilot/PyRs2/resolve/main/python/closures.py
124 Bytes
| def outer_func(x): | |
| def inner_func(y): | |
| return x + y | |
| return inner_func | |
| add_5 = outer_func(5) | |
| print(add_5(10)) |