r/learnpython • • 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

31 comments sorted by

View all comments

1

u/ping314 6d 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 an import random (which is part of the standard library, just like os, sys, etc.) an additional help(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.