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