how to check how many characters are different in two strings in python code example Example: how to tell if two numbers have the same characters python sorted(str1) == sorted(str2)