So überprüfen Sie, ob eine Liste IndexError erhöht, aber eine IF -Aussage Python

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