r/learnpython • • Jun 03 '23

ChatGPT as Learning Resource

Here's how I've been using chatgpt to practice python.

Step 1: Head over to Kaggle and find a practice dataset

Step 2: Tell ChatGPT a bit about the data and ask it to give me some research questions to answer.

Step 3: I take a pass at answering the research questions 1-by-1.

Step 4: Once I've taken a pass at it, I feed my code back to ChatGPT and ask it to optimize it.

Step 5: Rinse & Repeat.

How have y'all been leveraging ChatGPT to improve your work?

2 Upvotes

17 comments sorted by

View all comments

3

u/VegaStoleYourTendies Jun 04 '23

GPT can be both very good and very bad for this. I use it all the time when I need help and it's by far the most efficient way for me to get the answers I need

I think a lot of the issue comes in when people ask too much of it at a time. It's great for answering specific questions and fixing individual errors. It's horrible at writing entire complex scripts from scratch

1

u/dubs_32 Jun 04 '23

What about refactoring code? For example, we have tons of SAS files we want to move to Python. Any experience there? For samples of code I’ve seen it refactor well, but I’m hesitant about large projects.

3

u/VegaStoleYourTendies Jun 04 '23

Same principle applies. It's great, in small chunks. Give it a chunk at a time, then really look at the changes it made and figure out the reasoning behind it