I noticed that you have added a for loop and tried to create multiple models which are not part of the original assignment. I must warn that extra things can fail the assignment if passing it is your goal.
As for the errors, it is important that we learn about it ourselves:
Google the error message “IndexError: list assignment index out of range” for understanding it with more examples. This, for example, is my first google result.
Play with the examples to try to reproduce the error and fix the error.
After understanding the error, examine your code again.
Cheers,
Raymond
PS: I removed some of your code as sharing assignment work is not allowed by the code of conduct.
Thank you very much for your prompt reply, @rmwkwok !!
I checked your attached linked and found that I had to add a value in models list. Now I can see all the test results. Super fascinating
You are welcome, Maï @Mai_Uchida_Kishaba. I am glad to hear that you have fixed it. Another way to start from an empty list without adding values to your models in prior is to use append(). It allows you to just append any number of new models, one at a time, to the list.