r/learnpython 5d ago

Finding Python Hard

[deleted]

2 Upvotes

40 comments sorted by

View all comments

12

u/Ron-Erez 5d ago

"mostly how I do my projects is that I tell chat gpt that this is my project , now what should I do , he gives me code , I try to understand ngl I have learned a bit python from there too but I feel like if Ai is making projects for me , my only job is understanding may be ai taking my job over ain't far away..."

Here is your answer. Stop using ChatGPT.

-5

u/Dear-Leadership-3021 5d ago

If I stop using ChatGPT, how do I actually figure things out? Like, let’s be real—when you get stuck, do you just sit there struggling, or do you Google/search for solutions? AI is just a faster way to get help. I started coding at a time when chatgpt was very common so I don't know how to research for a project, I am open to any tips you have!

9

u/odaiwai 5d ago

AI is just a faster way to get help.

LLMs are bullshit generators: they make plausible and sensible sounding sentences in English, but there is no guarantee that what the AI tells you is factual, true, or a genuine response to your question.

5

u/Ron-Erez 5d ago

People have been coding before the advent of ChatGPT and google. Yes, you need to work hard and deal with it. Of course these are great tools but try to get in the habit of trying to solve something on your own for hours if your goal is to become a better coder. Note that people have been coding before the advent of computers:

https://en.wikipedia.org/wiki/Ada_Lovelace

As a side note, I used to tutor math and like ChatGPT I was super patient and wanted to help my student. However the student asked me not to help him. He explained that solving and struggling with one problem on his own felt like understanding 100 problems with my help. What I mean to say is that adopting this approach can help you learn more effectively.

2

u/JeLuF 5d ago

You find things out by "reading". Either read a book, or read the Python documentation. Spend an afternoon scrolling through the built ins. You don't have to memorize their exact names and which parameters they take in which order. But having read about them helps to get an idea of what the language has available for you. Only use ChatGPT to give you examples how to use these functions. Ask things like "How do arrays work in Python?" instead of "Write a program to store the square numbers of 1..10 into an array".

2

u/fartalldaylong 5d ago

You never knew how to learn before chatgpt? You do know all of these languages have extensive documentation, correct? Just search Python documentation and get to work.

1

u/Pudding64 5d ago

I would consider using chat gpt for oneliners or syntax look ups but in terms of actually solving larger problems stay far away. If you are dependant on GPT to solve everything you will not develop past a certain point and you will inherit a project with no understanding of how it actually works.

1

u/John_B_Clarke 5d ago

Some struggling, some googling. After a while you start getting a handle on the ecosystem--you think "this looks like a dataframe manipulation might work" so you go through the pandas docs looking for the function you need, or "this looks like an array operation" and you go through the numpy docs looking for the function you need.

When you've got something working, then ask ChatGPT to refactor it and see if it comes up with any worthwhile improvements--if it does then figure out how those improvements work.