How To Remove An Input From The List In Python