Error in lab "name 'g' is not defined

ok you mentioned company portal, chances are that would be restricting your lab access.

to get a fresh copy, i already mentioned the step.

follow 1a. in the below link

Math for Machine Learning FAQ!