how to check if two strings have the same letters in them in python code example Example: how to check if all characters in string are same python s == len(s) * s[0]