check if certain characters are the same in two strings python code example
Example 1: how to check if all characters in string are same python
s == len(s) * s[0]
Example 2: how to tell if two numbers have the same characters python
sorted(str1) == sorted(str2)