title: Why does input only work if I enter a number?
body: <p>I have successfully made a python password system but the password can only be out of numbers, not letters. Here is the coding behind it:</p>
  
  <pre><code>    password = str(input("Please enter password to continue: "))
      if password == 'dog':
          print ("Welcome")
      else:
          print ("WRONG PASSWORD")
  </code></pre>
  
  <p>This doesn't work while having the password be an integer does work.</p>
  
  <p>Edit: Sorry about putting the wrong code, new to this site.
  I have now added quotes to 'dog' but it now gives this error in terminal</p>
  
  <pre><code>Please enter password to continue: dog
  Traceback (most recent call last):
    File "pass.py", line 1, in &lt;module&gt;
      password = str(input("Please enter password to continue: "))
    File "&lt;string&gt;", line 1, in &lt;module&gt;
  NameError: name 'dog' is not defined
  </code></pre>
  
  <p>Final edit: Fixed it by changing str(input to str(raw_input. It was because I was using terminal which uses python 2. Does anyone know how to make terminal do python 3 instead of 2?</p>