title: How to remove an element from a list by user input in python?
body: <p>I want to remove an element from a list by using a user input and a for loop.</p>
  
  <p>This is as far I got:</p>
  
  <pre><code>patientname = input("Enter the name of the patient: ") 
  for x in speclistpatient_peter:                
      del speclistpatient_peter
  </code></pre>