Unable to run code in the optional lab

Hi,
I am from a non-technical background and am interested in machine learning. I find the error each time i try to run the code. Can you please help?
Thank you.
regards,
Priya

Yes the problem here is probably because you forgot to run all upward code cells, there should be one as: import numpy as np

Thank you mentor.
I am from a non-tech background. Can you please explain in simple terms? Could yuo please explain the meaning of upward code cells? If it’s running the previous code cells, I did it but got the same message for all the code cells.
Regards,
Priya

Two tips:

  • I recommend you attend an introductory Python programming course. It’s assumed you already have basic programming skills.
  • Every time you open the notebook, you have to run all of the cells starting from the top. That’s where the workspace assets are created and configured.
1 Like

Thank you dear mentor,
I was not sure of the requirement you have mentioned in the first tip.
Could you please
1- suggest a course on Python which is very simple and helpful for a beginner with absolutely no tech background?
2- help with what I need to do as Ihave already enrolled into this course?
Regards,
Priya

This looks like a nice easy-to-follow video instructional video on Python basics (it runs for 6 hours).

(Note: i have no relation to the video creator, it just came up in my feed when I searched for python tutorials).

You don’t need to do anything about your current course enrollment, it will wait for you to be ready to continue it.

The only drawback is if you are on a monthly subscription, you will lose a week or two while you brush up on Python. But it’s absolutely essential if you’re going to explore Machine Learning.

Dear mentor,
Thank you.