title: unsupported operand type(s) for ** or pow(): 'str' and 'int' with Python3
body: <p>My Python3 code</p>
  
  <pre><code>def ask():
  
      while True:
          try:
              n = input('Input an integer: ')
          except:
              print ('An error occurred! Please try again!')
              continue
          else:
              break
  
  
      print ('Thank you, you number squared is: ', n**2)
  </code></pre>
  
  <p>Why do I got error if I want to take a square of number?</p>
  
  <pre><code>unsupported operand type(s) for ** or pow(): 'str' and 'int' 
  </code></pre>
  
  <p>From command line no problems</p>
  
  <pre><code>&gt;&gt;&gt; 3**2
  9
  </code></pre>