liste = list(range(10)) print('avant', liste) while liste.pop() != 5: pass print('après', liste)