python how to see if a string has 2 letters 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)
s == len(s) * s[0]
sorted(str1) == sorted(str2)