Created
June 5, 2019 02:01
-
-
Save Linus-Albertus/35adb4065895909dfbd5725cbe5b1307 to your computer and use it in GitHub Desktop.
[iterate dictionary] Iterate a Python dict
This file contains 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 = {'a': 1, 'b': 2, 'c': 3} | |
for k, v in dictionary.items(): | |
print(k, v) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment