Created
November 21, 2020 15:24
-
-
Save MartinThoma/3e0b2d9e249ae743d3c9e5f81f722bd9 to your computer and use it in GitHub Desktop.
This file contains 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
print(min([1, 2, 3])) | |
def foo(): | |
min = lambda n: "enclosing" | |
def bar(): | |
"""Bar is enclosed by 'foo'""" | |
print(min([1, 2, 3])) | |
def baz(): | |
"""Baz is also enclosed by 'foo'""" | |
min = lambda n: "local" | |
print(min([1, 2, 3])) | |
bar() | |
baz() | |
min = lambda n: "global" | |
print(min([1, 2, 3])) | |
foo() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment