Skip to content

Instantly share code, notes, and snippets.

@dtaivpp
Created October 10, 2019 18:20
Show Gist options
  • Save dtaivpp/826b3a2494cfadf62cc635e9fc155b2d to your computer and use it in GitHub Desktop.
Save dtaivpp/826b3a2494cfadf62cc635e9fc155b2d to your computer and use it in GitHub Desktop.
dictionary = {'string key': "string value",
('tuple', 'key'): {'dict': "value"},
123: "Value for int key"}
keys = dictionary.keys()
print(keys)
# dict_keys(['string key', ('tuple', 'key'), 123])
values = dictionary.values()
print(values)
# dict_values(['string value', {'dict': "value"}, 'Value for Int key'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment