How to check if a given string has the same characters or their probability is the same, which gives me True?
For example, if there is
string = "aaaa"
the result is True
and:
string = "aabb" True
string = "aabbcc" True
p = "1122" True
p = "aaaaBBBB9999$$$$" True
but:
string = "korara" False
p = "33211" False
For "aaa"
I can use (len (set ("aaa")) == 1)
, but I don't know about the others.