This website works better with JavaScript.
Explore
Sign In
quwiier
/
programming-basics-2022
forked from
ottergottaott/programming-basics-2022
Watch
1
Star
0
Fork
You've already forked programming-basics-2022
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
29
Commits
4
Branches
0
Tags
384 KiB
Python
100%
Tree:
3ff9dee64a
programming-basics-2022
/
07_python
/
closure.py
9 lines
106 B
Raw
Blame
History
def
adder
(
)
:
n
=
0
def
add
(
)
:
nonlocal
n
n
+
=
1
return
n
return
add
Reference in new issue
View Git Blame
Copy Permalink