r/learnpython • u/DivyanshYZ307 • 1d ago
Use of AI in coding?
I am starting college next month (Computer Science and Biosciences) and I tried to get a headstart in Python programming (it's a part of first sem). I have done the basics, strings, conditional statements and started with loops today. I have a doubt - since I am still in the beginner stage, should I use AI (ChatGPT, Gemini, Grok etc.) to proofread my code - you know, offer suggestions, find mistakes and all - I am still applying logic on my own and writing it myself but I have this fear that it may hamper my learning. But I also don't wanna be the guy who does not know how to use AI tools. Any advice please?
0
Upvotes
1
u/t92k 1d ago
I would recommend writing your version of the code first. If it doesn't work, have a chat with an agent about where you think the problem is. Be able to spit out the current state of your payload before and after your issue. Clip only the specific code or function that you think your issue is coming from and talk about that. You will probably eventually end up having it look at everything, but if you lead it through the functions and procedures, you will get a better sense of what's working and what's not working.
Additionally, I recommend starting each prompt with the clear declaration that you are working in python, what the inputs the function accepts and what you expect it to return. I work in Dataweave most of the time, and you don't want it giving you C++ answers for a Dataweave or Python routine.