How to Solve IndexError: List Assignment Index Out of Range in Python

How to Solve IndexError: List Assignment Index Out of Range in Python