Last active
June 1, 2023 21:19
-
-
Save webdevwilson/d828e56529ca622296d72d1e68f18e24 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
#!/usr/bin/env python3 | |
def fn(d={}): | |
return d | |
d=fn() | |
d['a'] = 'b' | |
print(fn()) # {'a': 'b'} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment