Skip to content

Instantly share code, notes, and snippets.

@AdamGold
Created March 9, 2019 16:28
Show Gist options
  • Save AdamGold/2d5472eca16166e0636763d8fa6a0b4a to your computer and use it in GitHub Desktop.
Save AdamGold/2d5472eca16166e0636763d8fa6a0b4a to your computer and use it in GitHub Desktop.
In [18]: dict.fromkeys(["key1", "key2", "key3"], "DEFAULT_VALUE")
{'key1': 'DEFAULT_VALUE', 'key2': 'DEFAULT_VALUE', 'key3': 'DEFAULT_VALUE'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment