title: "UnboundLocalError: local variable 'input' referenced before assignment"
body: <p>When I run my code I get these errors:</p>
  
  <pre><code>linechoice = input("What password do you want to delete?:\n")
  </code></pre>
  
  <blockquote>
    <p>UnboundLocalError: local variable 'input' referenced before assignment</p>
  </blockquote>
  
  <pre><code>def delete():
      print("Welcome to the password delete system.")
      file = open("pypyth.txt", "w")
      output =  []
      linechoice = input("What password do you want to delete?:\n")
      if linechoice == "email":
          for line in file:
              if "Hotmail" != line.strip():
                  output.append(line)
                  print("Password " + linechoice + " deleted.")
                  y_n = input = ("Do you want to save these changes?\ny/n\n")
                  if y_n == "y":
                      file.close()
                      print("Change saved.")
                      input("Press enter to go back to menu")
                      main()
                  else:
                      main()
      elif linechoice == "skype":
          for line in file:
              if "Skype" != line.strip():
                  output.append(line)
                  print("Password " + linechoice + " deleted.")
                  y_n = input = ("Do you want to save these changes?\ny/n\n")
                  if y_n == "y":
                      file.close()
                      print("Change saved.")
                      input("Press enter to go back to menu")
                      main()
                  else:
                      main()
      else:
  </code></pre>