Answers for "how to print a statement and dictionary in python"

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
0

inspect rows in dictionary pthon

dict(list(mydict.items())[0:2])
Posted by: Guest on December-11-2020

Code answers related to "how to print a statement and dictionary in python"

Python Answers by Framework

Browse Popular Code Answers by Language