Skip to content

Instantly share code, notes, and snippets.

@webdevwilson
Last active June 1, 2023 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webdevwilson/d828e56529ca622296d72d1e68f18e24 to your computer and use it in GitHub Desktop.
Save webdevwilson/d828e56529ca622296d72d1e68f18e24 to your computer and use it in GitHub Desktop.
#!/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