avatar Bite 122. Check if two words are anagrams

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?

Login and get coding
go back Intermediate level
Bitecoin 3X

237 out of 237 users completed this Bite.
Will you be the 238th person to crack this Bite?
Resolution time: ~27 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 2.5 on a 1-10 difficulty scale.
» You can do it! 😌

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help