You are viewing a single comment's thread. Return to all comments →
create dicts in one line and without the library
all_keys = set(s1 + s2) k1 = {i:s1.count(i) for i in all_keys} k2 = {i:s2.count(i) for i in all_keys}
Seems like cookies are disabled on this browser, please enable them to open this website
Making Anagrams
You are viewing a single comment's thread. Return to all comments →
create dicts in one line and without the library