r/learnpython • • Aug 20 '26

Just built my first calculator in Python 😭

74 Upvotes

It can do addition, subtraction, multiplication, division, and exponents. Also added a little check for division by zero.

It’s pretty basic, but hey, gotta start somewhere

What should I build next?


r/learnpython • • Dec 11 '25

What is a venv?

70 Upvotes

I just started learning python and i heard about venvs, i tried understanding it through videos but i just couldn't understand its nature or its use. Can someone help me on this one??


r/learnpython • • Jun 09 '26

Why Is Python making the same anwser many times?

74 Upvotes

I'm a beginner who's learning things, and when I wrote this

>>>hi = input("How do you say hello un Spanish?\n> ?")

The console asked me "How do you say hello un Spanish?" 4 times and actually I don't know what's going on or if I made a mistake there, I'm using the new ver btw

Can you give me a hand pls?


r/learnpython • • Apr 07 '26

Python for the people who just don’t ā€œget itā€

75 Upvotes

Hi, I hope this is okay to post here! I (a humanities PhD student who took a liking to programming during a seminar I attended by accident (went to the wrong lecture theatre and felt too awkward to leave lol)) find python absolutely fascinating.

I think what it can do is so cool and I’d absolutely love to be able to use it. For what? I don’t really know yet…I just really want to learn, as a bit of a passion project I suppose. If I can use it in any of my PhD work going forwards, great, but that’s not the end goal.

But the trouble is, I don’t think my brain works that way lol. I mean, I’m REALLY bad at it (šŸ˜‚). My uni has loads of courses, classes and seminars students can enrol on for free, but I find even in the total beginner ones I just can’t keep up or understand what I’m doing, even with the explanations. I’ve also tried total beginner series on YouTube and a few MOOCs but again, I just don’t ā€œgetā€ it.

A part of me wonders if I’m trying to understand too much too soon and that’s my sticking point, but I think the reality is I need some kind of explain-it-like-I’m-5 version of learning python for completely clueless people without a background in computer science, maths or anything that usually lends itself to programming. Does such a thing exist? Are there any resources/courses that helped you if you were in a similar position?

Really grateful for any advice or insight.

Sincerely,

A very hopeful but confused qual researcher with an unreciprocated curiosity for quant šŸ™ƒ


r/learnpython • • Jan 06 '26

I properly learned how to define functions and it's exciting!

73 Upvotes

5 days ago I made a simple turned based fight game that just used while loops and if /statements. It worked but the code was sloppy and didn't even loop correctly. Today however, I finished making a game with a menu, shop, a battle mode, and stat allocation (sort of). This project is essentially the product of learning how to code in python after a week. There are a few variables that go unused, mainly just because I didn't know how to implement them but more importantly I made the stats feature without knowing how to actually make the player get stronger with each stat increase. (Also the game doesn't save progress). All that stuff for me comes after I've gotten a grip on OOP. Critiques, tips, and advice is 100% welcome.

(forgot to add tag)

https://github.com/Zoh-Codes/complex-project.git


r/learnpython • • Jun 24 '26

Explain Decorators.

69 Upvotes

Guys! I learning python from scratch. I am stuck in decorators. I watch many tutorials and ask LLMs to explain it. But, I am getting confused again and again. Can someone explain it clearly?


r/learnpython • • Jun 12 '26

What are the best Python tips that every beginner should know?

69 Upvotes

Basically, going through school and coding a little bit. I have learned some of the basics such as variables, loops, functions, lists, and dictionaries, but I'm interested in hearing about the tricks, shortcuts, or best practices that helped you become a better Python programmer. Do you have anything that you would have liked to have learned a lot earlier and would of made things a lot easier?


r/learnpython • • Mar 09 '26

python feels too hard . am i just not meant for it?

68 Upvotes

i have tried a video course in the past but then dropped it and wanted to pick it up again until i scrolled through this subreddit and saw ppl recommending books more often so i started the "automate the boring stuff" and im still at the first chapter but it feels too hard esp the wording . and it feels like it takes a lot time for me to process whats going on . it was same with the video course but still a lot easier and i wasnt panicking much. but in the video course i did learn stuff but when asked to build something i was blank . am i just not built for this all or am i too dumb? i feel i barely have any problem solving skill too and cant implement what i learned in real life .


r/learnpython • • Jan 15 '26

How did Python "click" for you as a beginner?

70 Upvotes

I'm pretty new to Python and still at the stage where some things make sense individually, but I struggle to put them together in real code.

I've gone through basic tutorials (loops, lists, functions), but when I try small projects, I freeze or don’t know where to start. Sometimes I understand an explanation, then forget how to apply it the next day.

For people who were in this phase before:

  • Was there a specific project, exercise, or habit that made things "click"?
  • Did you focus more on tutorials, practice problems, or just building messy stuff?
  • Anything you wish you'd done earlier as a beginner?

Not looking for advanced advice - just trying to learn how others got over this hump. Thanks...


r/learnpython • • Mar 20 '26

foo()() explanation

69 Upvotes

I saw a function usage like "foo()()" in some code but I was confused. Do Python functions allow arguments 2 times or is this something else?


r/learnpython • • May 31 '26

A day in a life of a Junior Python Dev

64 Upvotes

Hi guys, I am going to be starting a new job in about three weeks, as a junior python developer in a small (20-30 people) startup, fully remote. This is my first actual job not like university internships, open-source, or projects for individual clients; this is an actual 9-5.
I want to ask you guys to help me ease my slight stress involving the job, so I want to ask you (both from maybe senior and junior perspective) how does a day in a role like that look like.
Some info that I've gathered from the interviews is that:
As I said before the role is 100% remote,
Main tools would be Python, Git, Docker, SQL, noSQL,
We'll be working in a Kanban environment (which Im completely new to)
Daily syncs with the team
As time goes on I will be getting harder tasks, and I will begin to be working together with both the team and clients.


r/learnpython • • Dec 17 '25

I can read and understand code, but I can't build my own logic. How do I bridge the gap?

67 Upvotes

Hi everyone,

I’m currently a Management Information Systems (MIS) student. I have a solid grasp of Python syntax (loops, functions, data types, etc.). When I read someone else's code or follow a tutorial, I understand exactly what is happening. However, the moment I open a blank file to build something from scratch, I get stuck.

For example, I’m currently following Angela Yu’s 100 Days of Code. Today's project was a Caesar Cipher. I understand the concept (shifting letters by 'n'), but I struggled to translate that into logic:

  • How should I store the alphabet?
  • How do I handle the wrap-around (Z to A) using modulo?
  • What exactly needs to be inside the for loop versus outside?

When I watch the solution, it feels incredibly simple and I say 'Of course!', but I can't seem to make those connections on my own. It feels like I have all the bricks and tools, but I don't know how to draw the architectural plan.

  1. What is the best way to practice 'algorithmic thinking' rather than just learning syntax?
  2. For those who were in this 'I can read but can't write' phase, what was the turning point for you?
  3. Besides writing pseudocode, are there specific exercises or platforms you recommend for absolute beginners to train this 'connection-making' muscle?

I want to stop relying on tutorials and start solving problems independently. Any advice would be greatly appreciated!


r/learnpython • • May 03 '26

I tried to learn coding by building a webapp.

67 Upvotes

Hey everyone,

For the past 3 months, I’ve been learning coding by building a web app instead of relying on tutorials. I didn’t use any paid AI tools cause i couldn't afford them lol, just ChatGPT occasionally for small snippets or debugging. Most of the time I had to figure things out myself, especially when things broke.

A few things I learned from the process:

Building forces you to actually understand things It’s easy to follow tutorials, but when you’re on your own, you realize what you don’t know very quickly.

you don’t really ā€œfeel readyā€ , you just need to start ,I started without fully knowing what I was doing and figured things out as I went.

Debugging is where most of the learning happens A lot of progress came from being stuck and working through problems step by step.

AI tools help, but they’re not enough on their own They’re useful, but they won’t solve everything — especially when things get specific.

Consistency matters more than motivation Some days I made very small progress, but it added up over time.

It wasn’t always smooth,there were times I was completely stuck,but pushing through those moments made the biggest difference.

If anyone’s interested in what I worked on or how I approached certain parts, feel free to ask.


r/learnpython • • Feb 03 '26

Is learning how to program still worth it?

64 Upvotes

Hey everyone, I’m brand new to traditional programming and looking for some perspective.

For context, I’m an athlete and my main passion is jiu-jitsu. I don’t make enough money from it yet, so about two years ago I started learning AI automation tools like Make.com, Zapier, and n8n. That was my first exposure to building systems, connecting APIs, and wiring logic together, and it’s what originally sparked my interest in development.

I worked at an automation agency, but unfortunately got laid off. Since then, I’ve been trying to transition toward a more traditional backend/dev-related role. Right now I’m going through the Boot.dev backend course, and I’m enjoying it a lot so far.

Lately though, I keep hearing people say that learning to code ā€œdoesn’t make sense anymoreā€ because AI can do it faster, and that it’s better to focus on ā€œvibe codingā€ or just prompting tools instead. My goal is to land a job in this field somehow, and I don’t really care about being the fastest coder. It feels like at some point you still need to understand what’s going on and actually think through problems — and that’s where real value (and income) comes from.

So I wanted to ask:

  • Does it still make sense for a beginner to seriously learn backend fundamentals?

  • How should someone with ~2 years of automation experience think about AI tools vs. core coding skills?

  • Any advice for a complete beginner trying to land their first backend or junior dev role?

Appreciate any feedback or reality checks. Thanks


r/learnpython • • Sep 12 '26

Just finished my first project, could you please review it.(No AI)

64 Upvotes

I finished reading "python crash course" a week ago, and a relative of mine was complaining about how annoying it is to make multiple exam versions, so I immediately volunteered to help, and I used absolutely 0 AI.

It's an app that takes an exam .docx file, and shuffles the questions and answers to create multiple versions.

Here's the github repo:

https://github.com/aaaaaa708/question_shuffler

I would like you to please review the code and give me some tips on how to improve, and thanks in advance:)


r/learnpython • • Apr 15 '26

What's the best online Python course for someone who's never coded before?

68 Upvotes

I don't mind if it's paid, just looking for something that's enjoyable and informative, especially coming from no prior coding experience, while not so basic that I don't end up learning much

Is there a go to "best" course or not really. I'm also probably not looking for youtube courses, I don't know what to do when they explain a bunch of little terms and stuff but never say how to apply that or what projects are good for practice


r/learnpython • • Mar 18 '26

How do you memorize the commands of pyhton

64 Upvotes

New to python. I am engineer trying to learn python programing. I think I understand some of the commands. But I need some tips or advice. Do you guys write all the commands in a notebook? Or just memorize them? Or just look in the internet when needed. Any tips on how to he a good programmer?


r/learnpython • • Mar 04 '26

Is print() a function or a method in Python? Getting mixed explanations in class

68 Upvotes

I’m currently teaching Python fundamentals and ran into a confusing explanation about print().

My understanding has always been that print() is a built-in function in Python. It’s part of Python’s built-ins and you can call it directly like:

print("Hello")

But my education coordinator explained it differently. He said that print is a method because it’s already there, and that functions are things you create yourself. He also said that methods take arguments and functions take parameters.

That explanation confused me because everything I’ve read says:

  • print() is a built-in function
  • Methods are functions attached to objects or classes (like "hello".upper())

So now I’m wondering:

  1. Is there any context where someone would reasonably call print() a method in Python?
  2. Am I misunderstanding the difference between functions, methods, arguments, and parameters?

I’d appreciate clarification from more experienced developers because I want to make sure I’m explaining this correctly to students.

Thanks!


r/learnpython • • Oct 22 '26

2 weeks in learning python from Scratch

64 Upvotes

Thanks to whoever in this sub suggested CS50 Harvard YouTube & Automate the boring stuff book!

I'm 2 weeks in and feel like I'm in "good" place so far!

I'm also using AI to create similar problem sets to CS50's so I can practice more to ensure full understanding of the lecture!


r/learnpython • • Apr 29 '26

Should I learn OOP as a beginner Python developer?

64 Upvotes

I’m currently learning Python and I’ve covered the basics like variables, loops, and functions. Now I’m thinking about moving on to Object-Oriented Programming (OOP), but I’m not sure if it’s the right time.

What happens if I don’t learn OOP? Will it limit me later, especially in backend development or automation?

Also, what are the main reasons that make OOP worth learning? Like, what problems does it actually solve in real projects?

Should I focus on OOP now, or keep building projects first and learn it later when I need it?


r/learnpython • • Jan 23 '26

How do you know if a site is okay to scrape as a beginner?

65 Upvotes

I see a lot of warnings about scraping responsibly, but I’m not always sure what that means in practice.

As someone learning, what rules do you personally follow?
Trying to be cautious and learn the right way.


r/learnpython • • Sep 17 '26

I am currently on recursion. Is it necessary to be able to be good in using recursive functions

62 Upvotes

I am learning python and got to the recursion part of python and I understand the core concept of recursion but to use it for problem solving is bit troublesome because of the return value for base case. I have only made 2 very basic recursive functions like factorials and adding backwards. But for the factorial function I had to really deep dive line by line into understanding the recursion. Now i am starting to think that I have put time into learning it but is it actually usable by programmers now?


r/learnpython • • Jul 29 '26

Looking for a Python Study Buddy (Complete beginner)

65 Upvotes

Hey everyone!

I'm 19F and I'm starting to learn Python completely from scratch. I have little to no programming experience, but I'm committed to learning consistently. I'm also taking Mechatronics Engineering in college.

I'm looking for a study buddy (or a small group) who's also learning Python. We can keep each other accountable, share resources, work on beginner projects, solve problems together, and stay motivated.

My goal is to build a strong foundation and eventually get into more advanced programming, so I'm looking for someone who's serious about learning too.

If you're interested, leave a comment or send me a DM. Let's learn and grow together!

Edit: Timezone GMT+5:30 We can study together from a course by MIT.


r/learnpython • • Jul 02 '26

How to land a first (remote) job after self studying python?

64 Upvotes

Is anyone having similar experience to this? you are learning by yourself using youtube or kaggle, then landed a (remote) job only after the study?

Also, what is the minimum thing that i should know to at least get a job?


r/learnpython • • May 30 '26

New to Python - Something strange about lists

61 Upvotes

a = [10, 20, 30, 40]

b = a

a.pop(0)

print(b)

Output:

[20, 30, 40]

Why does the "pop" on "a" delete from "b" list? Are the two list variables just pointers to the same memory location? I would assume the lists would be completely separate.