An anagram is the result of rearranging the letters of a word to produce a new word (see Wikipedia).
Note: Anagrams are case insensitive
Complete the is_anagram
function to return true
if the two arguments given are anagrams of each other; return false
otherwise.
"foefet"
is an anagram of "toffee"
"Buckethead"
is an anagram of "DeathCubeK"
- Test your solution by running
python tests.py
- You are encouraged to try writing more tests. Your solution will be run against many more tests after this assessment.
- Push your changes to the
main
branch:git push origin main