This would be another great place for a try/except to make sure the list actually contains whatever the user puts in here. If not, remove() is going to throw an error and crash the program.