W4_A1_Ex-2_for loop to initialize parameters_getting key error for W2

They gave you all the loop mechanics in the template code, right? All you have to do is fill in the actual calls to the appropriate random or zero init functions. They even gave you the LHS expressions for the two assignment statements in the comments.

If you modified the loop logic and want to get back to the original template code, there is a topic about that on the DLS FAQ Thread

BTW I used the little “edit pencil” on the title of your post to move it to the appropriate category.