Write a simple function, named is_anagram
, taking two strings, and returning a boolean value.
The function shall return True
if the letters of one word are a rearrangement of the letters of the other, False
otherwise.
Superfluous (or missing) spaces, quotes, dashes, ... are allowed: funeral
is an anagram of real fun
.
Capitalized letter are equivalent to lower case letters: Madam Curie
is an anagram of Radium came
.
Diactirics of any language are ignored: crâné
is an anagram of crane
.
There's no corrections yet, hit the `Submit` button to send your code to the correction bot.
Keyboard shortcuts: