python store error message code example Example: how to check if a list raises IndexError but wihing a if statement python if 0 <= x < len(lst)