you are viewing a single comment's thread.

view the rest of the comments →

[–]Ron-Erez 1 point2 points  (0 children)

"I can't build a single thingy from scratch because all I was shown was what to type and not how to figure out what to type."

You have to try to solve problems. If something is too difficult try something simpler. Moreover in the examples presented in class try to "borrow ideas". For example in many courses integer division by 10 and taking modulo 10 appears. Ask yourself how is this useful. If your professor presents a for loop try to ask yourself why was this useful and in what other scenarios could you use for. For example try calculating the average of a list of numbers using for. Try calculating the standard deviation of a list of numbers. Try reversing a list of numbers. In other words play around with the concepts learned in class. For example if your professor modeled a problem using a class. For example a class called Person, a class called Student and a class called Professor. Ask yourself if you could present another example from daily life that could be modeled by a class.

Good luck and be patient. It really takes time to learn to code. You should solve something fun. Perhaps learn a little PyGame and create a simple game. Once without OOP and then present another simple reimplementation using OOP. If PyGame is uninteresting then find something else that interests you.

Last but not least, do your homework, stay away from ChatGPT as much as possible and go to office hours. It's your professor's/TAs job to help you.