Skip to content

Instantly share code, notes, and snippets.

@solalatus
Created February 17, 2019 18:29
Show Gist options
  • Save solalatus/10ab7f4e6a0ba05a35dfe97c04e3bbc3 to your computer and use it in GitHub Desktop.
Save solalatus/10ab7f4e6a0ba05a35dfe97c04e3bbc3 to your computer and use it in GitHub Desktop.
my_dict={"key1":13,"key2":14}
assert type(my_dict) == type({})
print(my_dict.keys())
print(my_dict.values())
print(my_dict.items())
for i in my_dict.items():
print(i)
for key, value in my_dict.items():
print("key:",key)
print("value:",value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment