For this challenge you will make a program that takes in two different strings and see if the invidual letter or number characters in a string match in both strings. For example, 'abcde2' can be rearranged to 'c2abed'.
Your program should return true for all the following examples...
is_anagram('charm', 'march')
is_anagram('CharM', 'mARcH')
is_anagram('abcde2', 'c2abed')
Run your test specs early and often. Also, if you come across a scenario that isn't included in your test suite, then you should absolutely add it!
- Solve this same exercise without using Python's built-in
sorted
method.