Created
September 1, 2016 15:14
-
-
Save zefirka/d062211e75560633a583ec79402b2aec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = 0 | |
def incer(): | |
def inc(): | |
global a | |
a+=1 | |
return a | |
return inc | |
def sm(x=incer()): | |
return x() | |
x = sm() | |
y = sm() | |
z = sm() | |
print (x, y, z) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment