how to check if a letter is same in 2 strings python code example Example: how to check if all characters in string are same python s == len(s) * s[0]