Skip to content

How to print all elements of a dictionary in Python?

for key, value in mydic.items() :
    print (key, value)
See also  How to take integer input in Python?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.