Problem with Course 2, Week 1, Programming Assignment: Initialization , "Exercise 2 - initialize_parameters_random"

Problem with Course 2, Week 1, Programming Assignment: Initialization , “Exercise 2 - initialize_parameters_random”
The following two lines of code I have entered:

        # YOUR CODE STARTS HERE
        # mentor edit: code removed
        # YOUR CODE ENDS HERE

And then the result is:
2 Tests passed
1 Tests failed
→ 164 “Not all tests were passed for {}. Check your equations and avoid using global variables inside the function.”.format(target.name))

AssertionError: Not all tests were passed for initialize_parameters_random. Check your equations and avoid using global variables inside the function.

I have not added anything outside the code block which I was supposed to enter.

Please do not post your code on the forum. That’s not allowed by the Code of Conduct.

Posting a screen capture image of any error messages is fine.

If a mentor needs to see your code, we’ll contact you with instructions.

Tip: Why are you multiplying by 0.01?

1 Like

Sorry about posting the code. I will keep that in mind for future.
Your Tip hinted me to read the exercise summary notes closely and when I changed that to “10” instead of 0.01 → all tests passed. Thanks for the tip. Appreciate it

2 Likes