How to do implementation part

how can i actually learn the coding part in this course i mean the python codes are so hard i cannot remember them

Have you studied Python programming before? The course assumes you already are familiar with computer programming and the basics of Python.

yes i know basics of python and c++ i can understand what’s what’s going on

The coding will become easier with more experience, as you proceed through the course.

Hello @Rajat6,

I knew C++ and some basics of python when I started off, so I think my experience may be relevant.

You don’t need to memorize the code to be able to implement it one day. It just takes practices to burn it into your muscle memory which means it takes time and patience. The first step is to read and understand. One common thing about all of these labs, graded or ungraded, is that the aim is to implement algorithms presented in the lectures. What’s more, especially in the first course, you will find that we repeatedly implement them - in the ungraded labs first, then the graded ones. Therefore, when you get to an ungraded lab, please do follow through each step closely and make sure you know what’s happening inside out, but there is absolutely no need to memorize anything.

After you finish the whole (or a certain portion if it feels better) ungraded lab, try to re-implement the code in place. By in place, you can move the code somewhere so you have the “answer” ready, and then you can try to work the moved code out all by yourself with the help of your understanding of the algorithm and the description available. This step is the slow one, but a good way for you to train yourself. For me, I have never learned implementation by memorizing, instead, I just tried it myself and, in case of a problem, I searched for working code and read and typed some, if not all, of it myself. It can take weeks to see some changes, but weeks are nothing compared to years where my Python skills helped me through all the tasks.

After you finish re-implementing an ungraded lab, just move on to the next one and do the same, until you meet the week’s assignment. Try to work everything out by yourself, but there is no need to consider it like a closed examination. The key at this point is not about what percentage you can finish absolutely without any help, but about giving yourself time and chances to develop your muscle memory. This means that, you should try it yourself first, but after multiple failures, use the ungraded labs as reference. Again, in course 1, we repeatedly implement the same thing, so it’s likely you can find a reference in some previous lab.

Let me emphasize it again. For all of these graded and ungraded labs, it will be better if you challenge yourself to try multiple times, but it is absolutely needless to require that you have to finish the whole lab without any help from other references. Over time, you will remember the code without realizing it - not by magic but by your persistent hard work.

You have asked a really great question because you care about it and I consider it a step towards success.

Cheers,

Raymond