r/learnpython • u/dubs_32 • 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?
3
u/Seanzietron Jun 03 '23
Ask it to regurgitate and strategy for any game and it’s often way off.
WC3 for example… it even mistakes simple things like which units are produced out of which buildings.
I wouldn’t trust to learn off it.
-1
u/dubs_32 Jun 04 '23
As someone who’s just getting started and in the realm of data analysis I have found it reliable. But good to know the issues you pointed out
3
u/Slight-Violinist6007 Jun 03 '23
I earlier had an assignment that require me to take on a role of a system administrator using linux. I have never used Linux in my life before this and chatpgt explained what every command does in great detail.
This combined with further independent research about linux have made it quite clear on what to do.
In that regard it’s been a fantastic learning resource.
1
u/blarf_irl Python Developer Jun 04 '23
What was the assignment?
2
u/Slight-Violinist6007 Jun 04 '23
I had to setup accounts and permissions for an imaginary company. Create proper file structures and set up groups with varying levels of access.
It might not seem very complicated but as a Linux novice it was an interesting process of learning all the commands and such.
2
u/blarf_irl Python Developer Jun 04 '23
This IMO is a great use of a well trained LLM (ChatGPT does do a great job here as a general LLM but it doesn't guarantee accuracy). Conversational access to technical documentation amounts to a user friendly way to search for and be presented with documentation in a comprehensive way.
Nothing you learned here couldn't have been learned by reading the man pages however presentation does matter.
Programming is the art of identifying a problem, breaking that problem into a sequence of small problems and then solving those until the original problem is solved.
This is not unlike the structure of a conversation between a student and a mentor.
M: I need you to give 5 users accounts and access to this linux machine. S: How do I do that? M: Use the terminal S: Which program adds a user? M: useradd S: What arguments does useradd take? ....Typically this conversation is less literal, it's more of an internal dialog with the programmer filling both roles and the "mentor" is the act of looking up documentation/SO/google.
This is a fundamental skill and process for all programmers. Notice that this process is absent if you ask ChatGPT "Write a script that adds 8 users with permissions for ..."
1
u/blarf_irl Python Developer Jun 04 '23
You should put this in your CV. I know I would appreciate the heads up.
2
u/dubs_32 Jun 04 '23
What do you mean?
1
u/blarf_irl Python Developer Jun 04 '23 edited Jun 04 '23
I mean that if I were hiring you I would like to know that you use ChatGPT as a metric and as a way to "optimize" code.
In a typical interview situation CHatGPT could produce adequate answers for a junior role; Maybe it would even pass for a senior for an hour with an informal review.
3 months in when I'm beating down the flames with an empty fire extinguisher I'd be thinking.. " I wish they had just said"
I'm not tossing my shoes at it; LLMs will get better and more accurate in coming years. ChatGPT is a great rubber duck and it will often produce code that will solve the problem you presented it.
If you rely on ChatGPT to optimize your code... why do I need you?
2
u/dubs_32 Jun 04 '23
That’s not unfair. I’m using it as one resource among others as I learn. Which skills would you be looking for and which resources would you recommend? Just fyi I’m not a software dev. I’m interested in data analytics.
1
u/blarf_irl Python Developer Jun 04 '23
It's very fair given the information I had! I don't want you learning like that. You would learn more using google but there is no harm using CGPT as long as it's not your guiding source of truth/skill.
ChatGPT is the worst thing to happen to programming education since (put something funny here). One very practical skill in programming is the ability to look up and find the answers you need in documentation and by reading old code; Making mistakes and fixing them.
You can't learn to do with the answer book; You just learn to recite.
Data analytics is a large topic; Anything specific you like or anyone you know with a job that you see yourself doing?
1
u/Elsekiro Jun 04 '23
Yup this is the way.
I've experimented a lot learned how to use the best libraries for data analysis and now i think im pretty solid. I might even apply for a certificate for tensorflow.
1
u/Elsekiro Jun 04 '23
I wouldn't necesarily say chatgpt has all the answers if you are sloppy you won't recognize when it makes mistakes probably not a lot but when it happens there might be bugs in your code that you may need to backtrack a lot to find.
1
u/Elsekiro Jun 04 '23
Why did i got a downvote chatgpt makes mistakes small ones but it does happen!
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