We use Python 3.6

go back Level: Intermediate (img: IM / score: 3) level Bite 122. Check if two words are anagrams

16 out of 16 users completed this Bite ...
Will you be Pythonista #17 to crack this Bite?
Average Bite difficulty 1-10 rating: 6.0
» Up for a challenge? 💪

An anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.[1] For example, the word anagram can be rearranged into "naga ram". Or for example, the word binary can be rearranged into "brainy". - source

In this Bite you complete the function below receiving two words and return True/False if word2 is an anagram of word1. See the tests for some interesting anagrams. See if you can use a data structure of the standard library?

Github login button