title: I am trying to have a delete option in my program which deletes the record of an employee depending on the name the user inputs
body: <pre><code>lst = []
  
  if optionpicked == "d":
          print("delete an employee record")
          employee = str(input("Enter employee name to delete: "))
          for employee in lst:
              print("Employee removed")
              lst.remove(employee)
  </code></pre>
  
  <p>Option <code>a</code> adds an employee record to my program and stores the record in a list which works fine. </p>
  
  <p>Option <code>d</code> should delete the employees record by searching the name which the user inputs to the program. If I just enter 1 or 2 employees, then delete will work; however when 3 or more employees are added, the wrong employee is deleted (not the name I entered)</p>