Created
October 10, 2019 18:20
-
-
Save dtaivpp/826b3a2494cfadf62cc635e9fc155b2d 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
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