Hello @Mai_Uchida_Kishaba,
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.
If you want to get a fresh copy of your assignment, FAQ B5 shows you how.
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.