Counting the number of distinct keys in a dictionary in Python

I have a a dictionary mapping keywords to the repetition of the keyword, but I only want a list of distinct words so I wanted to count the number of keywords. Is there a way to count the number of keywords or is there another way I should look for distinct words?

6 Answers
6

Leave a Comment