CS 15 mark question, how to do😭😭😭

I’ve looked through the marking scheme of some of the 15 marker questions and the answer in python is always shorter than the answer in pseudo code. So If I were to learn python for this question, what are the things am I supposed to learn? To what extent should I learn until?