Loading...
Loading...
Loading...
A word game checks two phrases. They are anagrams if they use the same letters the same number of times, ignoring case and spaces. Print Yes or No.
Example 1
Input
Dormitory Dirty room
Output
Yes
Same letters.
Example 2
Input
abc abd
Output
No
One letter differs.
Try the problem first. Open one hint at a time.
Remove spaces and lower the letters in both phrases.
Equal letter counts mean an anagram.
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor