I am running the following small python code to check the number of digits in the random number I generated. But I am getting error: "TypeError: object of type 'int' has no len()"
>>> import random
>>> a=random.randrange(1, 1000)
>>> b=len(a)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: object of type 'int' has no len()