title: NameError: name '[string]' is not defined
body: <p>When testing my program, I keep getting this error:</p>
  
  <pre><code>1. Encrypt a file
  2. Decrypt a file
  ----&gt; 1
  Enter the filename you'd like to encrypt: test
  Traceback (most recent call last):
    File "./encrypt.py", line 71, in &lt;module&gt;
      Main()
    File "./encrypt.py", line 58, in Main
      filename = input("Enter the filename you'd like to encrypt: ")
    File "&lt;string&gt;", line 1, in &lt;module&gt;
  NameError: name 'test' is not defined
  </code></pre>
  
  <p>And here is my code for the Main() function:</p>
  
  <pre><code>def Main():
          print("1. Encrypt a file")
          print("2. Decrypt a file")
          choice = str(input("----&gt; "))
          if choice == '1':
                  filename = input("Enter the filename you'd like to encrypt: ")
                  password = input("Enter a password used for the encryption tool: ")
                  encrypt(getKey(password), filename)
                  print("File has been encrypted.")
          elif choice == '2':
                  filename = input("Enter the filename you'd like to decrypt: ")
                  password = input("Enter the password used for the encryption of this file: ")
                  decrypt(getKey(password), filename)
                  print("File has been decrypted. Note that if the password used in the encryption does " \
              + "not match the password you entered in, the file will remain encrypted.")
          else:
                  print("Invalid option. Closing the program...")
  </code></pre>
  
  <p>I am using the simple input() method to get my data ('test', for example), and it keeps telling me whatever information I enter in at runtime, the name of what I just entered is not defined. I don't see any formatting errors, syntax errors, etc.</p>