What I want to do is determine the length of a number in python, for example I had a user input:
num = input("Enter a number: ")
print(num)
and the output was 1943, how will I get python to return the length of that, which is 4 in this example?
As well as that, how do I save it to a string? I tried this:
t = len(byte)
It just returns this:
Traceback (most recent call last):
File "bytes.py", line 10, in <module>
start()
File "bytes.py", line 5, in start
t = len(bytes)
TypeError: object of type 'type' has no len()