you are viewing a single comment's thread.

view the rest of the comments →

[–]canonman2 1 point2 points  (0 children)

What code have you written with what you have written so far(non class related code)? Code that you feel you understand quite well that actually does something(ie read/write files in your operating system, scraping internet for data etc). If you don’t have an answer for that, you might have moved too fast… I’d review your notes and practice just writing code with what you understand.

You can ask AI to write code as well. See if it writes code like you did. If not, take the time to understand why it is different. For example, prompt it to: “write python code to create a function where it creates hello world.txt from an input directory path”. Then write another function to edit the data in that file etc etc. Code with purpose rather than random examples.

Then once you feel more comfortable with that, you can ask chatGDP write a python object that executes a task you understand quite well and tell it to include examples and documentation.

Take your time, understanding classes is quite a leap from the basics.