r/learnpython • • 1d ago

Python learning as a beginner

Hey I need some help regarding programming python? Where am I supposed to begin? How to embrace the language? People say that you just dive in and you’ll start learning it, I tried but I go stuck, need serious help, please

12 Upvotes

36 comments sorted by

View all comments

Show parent comment

-1

u/Routine_Version7129 1d ago

Yes it’s my first and people say it’s the foundation of ai and I want to master it

1

u/Snoo61755 1d ago

Boot camp, then.

I use codecademy, so I can vouch for it, but there's others.

Go until you can figure out how to make your own little functions. For instance, you should be able to be able to do little mini-programs like...

-give a user instruction like "hello, type in a number!"

-Take that user's instruction, save it as a variable

-Do some kind of math or w/e to that variable

-print the end result of the math back out to the user

This involves some of the suuuuper basic instructions built into python ( input() and print() ), and how to manipulate a variable.

You're not going to get much more out of reddit posts, start doing a boot camp so you can actually see what I'm talking about.

1

u/proverbialbunny 1d ago

Is there no programming classes at your school, or does your local junior college have night classes? That's going to be the best way for an absolute beginner. This way you get to ask questions and get help.

It doesn't have to be Python. Any programming language class will do. Once you learn one programming language it's very easy to transfer those skills over to another programming language.

1

u/Routine_Version7129 6h ago

I am trying to learn by myself

1

u/proverbialbunny 6h ago

Gotcha. If you prefer lectures classes can be found for free online on Youtube. Grab a pirate e-book of the class book to go along with the lectures.

You can also just do an e-book by itself and go along with it. There are tutorial websites that double as an e-book so no piracy required.

When it comes to classes, e-books, and tutorial websites I look for one that is most compatible with my learning style. This is a ymmv kind of thing. Try out 3+ of these and see which works best for you and then go from there.

https://exercism.org/ (Python: https://exercism.org/tracks/python) is my favorite way to learn a new programming language, but it's meant for people who already know how to write code, so it may be a bit too advanced for your situation. (Or it might be perfect for your learning style, only you will know.) If you like learning through challenges this site is a great alternative to tutorial websites and e-books.

Have fun! :D