Machine learning course

I can’t understand all of some lab codes in the machine learning course. Do I need to understand every code line by line? For example, the last graded lab in the latest “Lunar Lander” course.

Its good to understand every line but some code that you are not meant to touch is not a must to understand it, after all this is not a programming course I guess.