C1W4A1:Indexerror need help

I haven’t met such error before, I tried lots of time to fix it, but in vain…
Could anyone help me? Thanks!

{moderator edit - solution code removed}

In the for loop over the hidden layers, you are passing a string as the first argument to linear_activation_backward. That does not end well.