python program to check if strings contain the same characters in defferent order code example Example: how to check if all characters in string are same python s == len(s) * s[0]