Cómo verificar si una lista aumenta IndexError pero wihing a If Declary Python

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