{moderator edit - solution code removed}
Hello,
I think the shape of W1 in test is (2, n) in exercise 3 but (20, n) in exercise 4 ( which is consitent with the notes). Thus, I use shape instead of a specific number. I am not sure if I get it right so please check the notes.
Best,
Haotian