c1_W3 AssertionError

Can you share the screenshot of the error log you are encountering. It gives a lot of detail to where you need to look for correcting your codes.

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

Check this post, it might help you. The learner had the code error log, although there were two mistakes in his codes.