how to avoid indexerror list index out of range

welcome to shbcf.ru