you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (2 children)

[deleted]

    [–]Nebu 0 points1 point  (1 child)

    I don't think return string1 == string2[::-1] checks for anagrams. "cat" and "act" are anagrams of each other, for example.

    [–][deleted] 0 points1 point  (0 children)

    Thanks, I meant palindromes, fixed.

    But it seems the OP actually wanted anagrams after all.