Stay With us
3 new comments

beginner
new

Help & Settings
About
Help
Tips

Print all keys in dictionary in python

I am new to python programming. I am working on dictionaries. I have created a dictionay for a list of languages which the specific people know. Here is my code,

fav_languages = {
    'John' : 'C#, Java',
    'Matt' : 'html, css',
    'Jeff' : 'Java',
    'Sarah' : 'Python'
}

Now i want to print all the key values as john, matt, jeff, sarah. How can i do this?

(0) Replies

Please login or register to Comment or Answer