Comment vérifier si une liste augmente l'indexerror mais wihing a if instruction python

if 0 <= x < len(lst)
Dead Deer