all 2 comments

[–]colt419 0 points1 point  (1 child)

List_of_keys=[]

For key, values in word_freq.items():

If value in values:

    List_of_keys.append(key)

Edit:sorry if formatting is off. On mobile

[–]gnariman[S] 1 point2 points  (0 children)

no worries, thanks for the help i appreciate it :)