text, return True if every letter that occurs in it occurs the **same** number of times, and False otherwise.
Letters that do not appear in the string are ignored.text="xyzzyx" → True
Each of the letters x, y and z appears exactly twice.
text="mmmoo" → False
m appears 3 times while o appears twice.
text="q" → True
There is a single letter, so there is nothing to compare.
len(text) ≤ 1000text consists of lowercase English letterstext="xyzzyx"
True
Run checks the first 3 tests in your browser. Submit checks all 93 tests on the server, hidden ones included.