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

11 Upvotes

33 comments sorted by

5

u/Mission-Luck-3609 21h ago

Ik it might sound obvious, but start from the basics. Learn the logic behind programming (if you are new to programming entirely) or if you alredy know other languages then learn how their features/terms compare with python. There are a lot of great videos everywhere

1

u/ee_control_z 21h ago edited 21h ago

Here is a book that can be used not only as a resource for learning Python but also as a curriculum since it is very well organized, topics well thought out and explained very well with plenty of examples to get good practice for reinforcement:

Learning Python, Mark Lutz, 6th Ed.

1

u/Routine_Version7129 20h ago

Reinforcement as in reinforcement learning?

1

u/ee_control_z 20h ago

Practice, practice, practice reinforces concepts such that you will not rely on memory but rather knowledge and understanding.

https://motivationandchange.com/why-practice-makes-perfect/

From the link provided:

Deliberately practicing new behavior has three effects: 1) you get better at doing it, which increases the odds that you will be successful at it when it matters,  2) you start to replace the old habits with new ones, and 3) you develop the habit of replacing old habits!

1

u/Routine_Version7129 19h ago

How do you keep yourself motivated when you fail??

1

u/ee_control_z 18h ago edited 18h ago

You have to have sincere interest in what you plan to do beforehand. This is foundational and without it motivation will be lacking. So, whatever it is you decide to do, make sure you have a sincere and vested interest. It tends to set the tone.

Failure is actually part of the learning process. There will be many. I have had so many failures in my learning journeys that I pre-emptively budget for it ahead of time. It is something that I have learned to accept - it certainly lessens the hits.

So, how do I keep myself motivated? One, I make sure that I do have a sincere interest in what it is I set out to do. Second, I don't let failure discourage me (its already been budgeted in). I keep pushing forward and keep on punching!

1

u/iEngineered 21h ago

How about adding some detail of what you have learned so far and where you got stuck. Programming is all about problem solving, and learning programming techniques is part of the problem solving process. In fact, you are learning how someone else solved a particular problem before it became a standard that is taught.

0

u/Routine_Version7129 20h ago

I get stuck in if else functions

1

u/iEngineered 20h ago

You mean if/else statements? Its a basic concept that if some condition is not met, then do something else. If password field is correct, then permit user, else (if not) throw an error message to the user. If/else statement\ is a normal concept we implement everyday without ccomputer. If room is clean, then go play, else clean up now.

1

u/proverbialbunny 15h ago

If you're smart, you'll figure out if-else statements

else, you will not be able to tackle this challenge.

Do not be afraid, it's not that hard.

1

u/stepback269 21h ago

As a beginner, you need to consider yourself a baby and learn to crawl (learn the "fundamentals") before you can stand up and walk or sprint. So search for the Python "fundamentals" on Google and/or YouTube.

As for a roadmap tailored to get you off the ground, that's going to be difficult. Python is a vast and expansive universe. There is never going to be a "one" soulmate tutorial that works "best" for you and with regard to every aspect of Python. With each step up that learning curve, you're going to have to shop around until you find a teacher/resource that "clicks and sticks" especially for you.

With that said:

(1) There are tons and tons of tutorial materials out there on the net including many good YouTube ones that are free. You should shop around rather than putting all your eggs in one basket.

(2) As a relative noob myself, I've been logging my personal learning journey and adding to it on an almost-daily basis at a blog page called "Links for Python Noobs" (--HERE--) Any of the top listed ones on that page should be good for you. And there are many add-ons at the tail end of the page. Personally, I cut my first Python teeth with Nana's Zero to Hero (==HERE==). Since then, I've moved on to watching short lessons with Indently and Tech with Tim. You should sample at least a few until you find a lecturer that suits your style.

(3) The main piece of advice is the 80/20 rule. Spend 80% of your time writing your own code (using your own fingers and your own creativity) as opposed to copying recipes and only 20% watching the lectures. Good luck.

0

u/Routine_Version7129 20h ago

How much time do you think should I put in? And if an hour is enough how long would it take me to build crazy projects?

1

u/stepback269 19h ago

When you say you got "stuck", what do you mean? At what level? Is it a procrastination issue?

0

u/Routine_Version7129 19h ago

It’s a technical issue, of course we can say procrastination but delaying something is very small compared to a bigger picture of learning

1

u/stepback269 19h ago

I didn't mention this before, but I'm old (70+ yr M) and therefore very slow in picking up the Python thing.

Along my learning journey, I stumbled across this whole "Learn how to Learn" stuff as well as a number of other side projects.

I have a blog page about the learning thing (here) if you're interested.

1

u/Snoo61755 21h ago edited 21h 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 20h ago

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

1

u/Snoo61755 19h 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 15h 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.

3

u/nonewsisgoodnews123 21h ago

Start with code academy and tryhackme

2

u/Own_Letterhead2853 21h ago

What's your end goal for learning it? The starting path looks pretty different depending on whether you want to do data stuff, web backends, or just simple task automation

2

u/Fastpast93 20h ago

I recommended Bro Code’s series on YouTube. It’s very in depth and easy. Make sure to program a lot with the things you learn in each chapter. If you want a reference book, I recommend Python for Dummies.

2

u/desrtfx but other languages pro 18h ago

This subreddit has a sidebar with a wiki with recommended learning resources.

Here is an excellent, textual course: MOOC Python Programming 2026 from the University of Helsinki.

Harvard's CS50p is also excellent.

Also, take a look at https://inventwithpython.com and https://automatetheboringstuff.com

Don't forget that you need ample practice, like on https://codingbat.com/python or on https://exercism.org and also write your own programs. Play around. Try things. Mess things up, fix them. Experiment.

Also, https://roadmap.sh/python

2

u/ivosaurus 18h ago

What did you try

1

u/Buddhadevine 21h ago

University of Helsinki has free classes on it go to mooc.fi

1

u/Chocolate_Toon_1234 21h ago

as someone who had to learn it in a hurry, youtube, w3schools and gfg saved my life.

1

u/TimBrownDev 21h ago

I built a roadmap of the best practice problems I've seen to help teach python timbrown.dev/roadmap

1

u/Yagosan 21h ago

There is a lot to where you can start. Just one super tip from someone who's struggled because everyone had a different opinion on courses, resources, guides...

0. Pick an objective

  1. Pick one guide or one course or one resource.
  2. Stay with it until you finish

That's it. Don't jump between materials or schools. Just stick with it, finish and then decide if you want to try something else.

I hope you do great!

1

u/2daytrending 11h ago

Try bro code python beginner series on youtube or python for everybody. both are good starting points. boot dev also has interactive python lessons if you prefer learning by doing exercises rather than just watchin videos. just make sure you practice each topic as you go.

-1

u/peakpirate007 19h 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.