You are viewing a single comment's thread. Return to all comments →
from collections import Counter a=Counter(raw_input()) b=Counter(raw_input()) print sum( ((a-b).values()) + ((b-a).values()) )
Done without loop
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 →
from collections import Counter a=Counter(raw_input()) b=Counter(raw_input()) print sum( ((a-b).values()) + ((b-a).values()) )
Done without loop