Machine Learning Lab Practice Week 2 & 3

Hello,
hope you are doing well,
I have some issues with the programming part of the Machine Learning Practice Lab. In every exercise I get some errors. Could you please help me to solve these problems? I really need this certificate.
Thanks.
{mentor edit: code removed}

2 Likes

Please move your thread to the correct forum area for your course. You can do this using the ā€˜pencilā€™ icon in the thread title.

There is a separate forum area for each course.

This will help a mentor for your course to notice your message.

I see that here you seem to be using the wrong character. These should be the underscore character. It looks like you used a hyphen or minus sign.

image

A minus sign is a math operator. An underscore can be used in variable name - minus signs or hyphens cannot.

In the future, please donā€™t post your code on the forum. That is not allowed by the Code of Conduct.

Also, the python language uses indentation to define blocks of code.
So everything that is ā€œinsideā€ the for-loop needs to be indented.

Your code doesnā€™t have the correct indentation.

If you donā€™t have python programming experience, I recommend you stop working on this course, and go attend a python tutorial course.

You cannot succeed in this course without python skills.

Hello,

Can you please help me with this problem?
No matter whichever way I try, I am not being able to pass the 3rd week practice lab of Machine Learning because itā€™s showing the same error again and again. Itā€™s showing that the name z_wb is not defined. Can you please help me with this?

Please post a screen capture image that shows the entire error message.