Answers for "displaying a dictionary in python"

9

print key of dictionary python

for key, value in mydic.items() :
    print (key, value)
Posted by: Guest on June-03-2020
1

python print dictionary line by line

# Iterate over key/value pairs in dict and print them
for key, value in student_score.items():
    print(key, ' : ', value)
Posted by: Guest on May-28-2020

Code answers related to "displaying a dictionary in python"

Python Answers by Framework

Browse Popular Code Answers by Language