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

1

u/Snoo61755 1d ago edited 1d ago

What's your experience with learning any programming languages at all? Is Python your first?

There are bootcamps here or there where you can follow a lesson plan, but not all of them are free, so you might have to dig. They'll teach you the super-basic stuff like an if/then/else statement ("if this condition is true, then do this, otherwise do that") or a while loop ("while this condition is true, do this repeatedly as long as condition is stays true").

A lot of programming is logic, the language you choose is just what you type to convey that logic. A bootcamp should be able to show you the very basics, since you won't be able to do much in any language until you know what an attribute or a function is.

-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 21h 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 2h ago

I am trying to learn by myself

1

u/proverbialbunny 2h 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