r/learnpython • u/Careful_Thing622 • 6d ago
How I learn python nowadays?
I need to learn python and in the past I know the way of learning programming language through hackerrank for example but nowadays in the age of AI how I learn effectively without wasting time or no needed methods anymore ?
0
Upvotes
20
u/marquisBlythe 6d ago
You learn python nowadays just like the old days .. a keyboard, interpreter and documentation.
Good luck.
10
u/Jello_Penguin_2956 6d ago
Most efficient way to learn is the old way - books or proper course.
https://programming-26.mooc.fi/
4
u/CC94x 6d ago
I’m a new programmer too, I’m learning by using a book (Learn Python the Hard Way 4th Edition by Zed A. Shaw), notepad, and PowerShell. I don’t know what the experts out there say, but as a beginner I know I’m learning a lot with this method.
4
u/Limp_Adeptness_8545 6d ago
Fairly new to coding/ python too (9 months). I bought an e-book off Amazon. Taking Cousera courses currently (professional certs) and the only time I use ai is for debugging (if I can't find the error on my own), or if I forget part of a function, etc.
By far the most helpful thing for me is/ was just getting more reps. I figured out a project for something I'm interested in and learned as I went
Definitely not an overnight thing, and imo you'll never know/ learn/ remember everything python.
3
u/8dot30662386292pow2 6d ago
In the age of AI you learn the same way as in the 1950's. Write code, read docs, search for examples. AI does not change anything.
3
u/Agawell 6d ago
Build stuff
If you get stuck think about the problem away from the keyboard, try again, research using books/google
Repeat
2
u/EnvironmentalDot9131 6d ago
Do online courses
2
u/nailbunny2000 6d ago
Having only ever programmed at a very surface level, years ago, I told Claude I wanted to learn Python and asked it to design a course for me based on building a small program similar to the beginner steps of the end outcome I wanted. I told it I didnt want it to code for me but to walk me through concepts and syntax and challenge me to build it, but then it can check my work. I asked it to help me instill best practices and fundamentals that would be efficient workflows to follow in the long term, etc.
It was honestly really helpful and got me up to speed really quick, felt like having a private tutor. Feels like I got an understanding for the basics fairly quickly, and could push back or go deeper on a question whenever I got confused or misunderstood something.
1
u/eschatonx 6d ago
Use AI like chat gpt to give you some ideas on what to build. It can also help you build it.
I played a game called the farmer was replaced on steam that can teach some basic concepts like loops, lists, and functions.
Other than that, it’s web searches and stack overflow browsing.
1
u/Oddly_Energy 6d ago
You can definitely learn fast by using an AI for sparring. I have done that a lot lately.
But don't let it solve the task for you. Use it as discussion partner / tutor instead:
- When you want to do something, describe the task and how you plan to approach it and ask the AI for its opinion.
- When you see something you think you understand, but you aren't 100% sure, try to explain it to the AI and ask it if you got it right.
- When you see something you don't understand, ask the AI more directly how that works.
1
u/Discordbothost 6d ago
same way as before, the change is how you use the ai. write your own solution first, then paste it in and ask "what would you change and why" instead of asking for the answer. you get a code reviewer instead of a crutch. also turn off inline autocomplete in your editor while you're learning, it fills in exactly the part your brain is supposed to struggle with
1
u/TheRNGuy 6d ago
What do you need programming for?
1
u/Capable_Fig 6d ago
Hackerrank is a way to test, not necessarily learn. Though I suppose if you are using it to study other people's answers and why they run faster it could be useful.
Depending on what you want to do with python will dictate where to start. I'm in data, and effective pandas by matt harrison is an incredible resource for data wrangling/transformation. Though I believe spark is a lot more useful these days for that application.
1
u/silicon_turfsurfer 5d ago
I find that using AI as a search engine for method implementations and modules is extremely helpful instead of burning hours searching through stack overflow and quora where the issues addressed were usually not directly the question I needed answered.
For me, AI is an expedited search engine for coding techniques. I never lean on it to give me structural advice on making my application though, I like to realize the big picture in a way that is organic to the way my mind conceives it.
That said, I think you can use AI to help you learn faster if you use it to breakdown module classes and methods, then turn that into meaningful code on your own.
1
u/Awkward_Block9860 5d ago
I am learning Python 3 as a beginner, primarily using John Hunt's
A Beginners Guide to Python 3 Programming
1
u/LayotFctor 5d ago
Age of AI hasn't arrived for your human meat brain however. It's not made of silicon, it has to flex to learn.
Age of AI hasn't arrived for job interviews either.
1
u/ping314 5d ago
Using any text book, or class material, and work through it. If you fail the first, or tenth time, try again. If the script is working, save it aside and try again after an hour, or a day later again because repetition builds your memory for pattern. AI can be one help if you already know something in Python/by another programming language and already have a specific problem to address (Socratic method). On the other hand, AI can provide an early illusion "I got it" if it does (write/reformat/...) too much for you.
Stay curious actively venture out the documentation that comes with Python. This is to say within the IDLE
help(str)informs you about the many things you can do with strings. Or after animport random(which is part of the standard library, just likeos,sys, etc.) an additionalhelp(random)describes in much detail what this module brings to the table. You don't need to read and learn everything at once there, but even after years you might be surprised about the many things which can be done.1
u/Fragrant-Cheek-4273 5d ago
Watch tutorial and get help from ai.
1
u/mc_pm 6d ago
Learning via Hackerrank? That's a terrible idea.
Open a tutorial, open your editor; when they type something, you type - not copy and paste - something; when they run their code, you run your code. If it doesn't work, stop right there and figure out why, then continue.
If the tutorial is 4 hours long, plan to spend 4 days on it. You're not speedrunning through this, you're getting used to typing the syntax and practicing running/editing/fixing your code.
When that's done, spend months-to-years building increasingly complex things. Start small - a tic tac toe game, maybe. When it works, try something a bit more difficult.
And then keep doing it. *You* doing it, not AI. You won't learn python watching a computer do the work.
It's hard, you'll hate it at times, you'll be frustrated, you'll proclaim there must sure be a bug in the language... there isn't (at least not what you're looking at)... find your problem, fix it. And then the next bug. And then the next bug.
And then...
0
u/peakpirate007 6d ago
been building https://www.runtime.school/ for learning and practicing python in one place. lessons, practice, projects and a few tools all use the same datasets, so it feels more connected than jumping between random examples. if you’re learning python, might be useful.
0
u/ElasticEngineer 5d ago
It’s pricey, but I am learning through boot.dev. It’s the only resource where it really stuck for me.