Como verificar se uma lista levanta o indexError, mas Wihing A If Declaration Python

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