title: Python - Extracting a character from an integer
body: <p>I'm trying to make an algorithm in python that asks you to insert a number and then it prints the hundreds, dozens and units from the number inserted.</p>
  
  <p>What I was thinking to do is to extract the character from the number that corresponds to the hundreds and print it as hundreds, as well with the dozens and units.</p>
  
  <p>For instance, what I've tried to do so far was:</p>
  
  <pre><code>number = 321 
  print 'Hundreds: ', number[1]
  </code></pre>
  
  <p>However, when I tried to run that, I got the message:</p>
  
  <pre><code>TypeError: 'int' object is not subscriptable
  </code></pre>
  
  <p>Is it impossible to do what I want?</p>