I am getting the following error
'TypeError: must be str, not generator'.
for the code below
a = '0123456789 01234 01234567890 6789012345 012322456789'
b = a.split(" ")
for num in b:
if num.count(**i for i in range(10)**) <= 1:
print("True")
else:
print("False")
This above should check whether each number has any duplicated number (False) or not (True).
For instance, the first number 0123456789 returns True because it doesn't have any duplicated number.
On the other hand, the last number 012322456789 returns False because it has three of '2'.