Created
January 11, 2016 14:02
-
-
Save jherrlin/22238fa00d4f73aa2a2d 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
d = { | |
'name': 'john', | |
'age': 30, | |
'city': 'Vaxjo' | |
} | |
for key, value in d.items(): | |
print(key, value) | |
# Replace all | |
for key, value in d.items(): | |
d[key] = 666 | |
for key, value in d.items(): | |
print(key, value) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment