r/PythonLearning • • Jun 15 '25

Discussion The best approach to learn python - What worked for me

100 Upvotes

I’ve seen a lot of people (myself included) get stuck jumping between tutorials or copying code without really improving.

I can say confidently that doing courses in that way does not work at all.

Here’s what seems to work for me:

- Learn by breaking and modifying: Don’t just type the example code. Change it. Break it. Add something new. Get errors, and fix them. That’s where the learning is.

- Work on a small personal project by week 2: It can be dumb. That’s fine. A random name generator, a to-do list CLI, whatever. The goal is ownership. You’ll remember way more from your own messy script than from 10 copied notebooks.

- Use ChatGPT or Gemini but as a guide, not a crutch**:** When you're stuck, ask why, not just how. These tools are amazing for debugging and learning, if you engage with the answers.

- Mix Python with something you care about: Want to analyze football stats? Automate Excel reports? Make dumb memes? Do it in Python. Motivation beats discipline.

What’s worked best for you?


r/PythonLearning • • Sep 25 '25

Help Request I need help

Post image
98 Upvotes

Im making a poker simulator for a project and don't know how to check if the value of each card is the same, so i can check for a pair, full house, etc. I also don't know how to remove a card from the list once I've already dealt one, so if anyone could help it would be greatly appreciate The if statement is just me checking for the suit


r/PythonLearning • • Feb 18 '25

🐍 Hey everyone! Super excited to share my latest project: The Ultimate Python Cheat Sheet! ⭐ Leave a star if you find it useful! 🙏

97 Upvotes

Check it out here!

I’ve put together an interactive, web-based Python reference guide that’s perfect for beginners and pros alike. From basic syntax to more advanced topics like Machine Learning and Cybersecurity, it’s got you covered!

What’s inside: ✨ Mobile-responsive design – It works great on any device!
✨ Dark mode – Because we all love it.
✨ Smart sidebar navigation – Easy to find what you need.
✨ Complete code examples – No more googling for answers.
✨ Tailwind CSS – Sleek and modern UI.

Who’s this for?
• Python beginners looking to learn the ropes.
• Experienced devs who need a quick reference guide.
• Students and educators for learning and teaching.
• Anyone prepping for technical interviews!

Feel free to give it a try, and if you like it, don’t forget to star it on GitHub! 😎

Here’s the GitHub repo!

Python #WebDev #Programming #OpenSource #CodingCommunity #TailwindCSS #TechEducation #SoftwareDev


r/PythonLearning • • Sep 21 '25

Newbie Attempt

Post image
96 Upvotes

Good afternoon everybody, hope everyone’s day is going well. So I started coding about 2 weeks ago. I’ve been following a YouTube course with Bro Code and also picked up Automate the Boring Stuff with Python. Everything felt like it was going well,I was taking notes and keeping up until today when I tried making a simple login with 3 attempts, and my mind just completely blanked.

Here’s what I’ve got so far. One thing I learned while writing this is that I had lines 3/4 inside the loop, which I never really paid attention to when following the course since the YouTuber would just hand over the correct solution. Because of that, my “username attempts” kept resetting to 0 inside the loop. I managed to fix that, which felt good.

But now I’m running into another issue: when I added the password check, even if I hit 3 failed attempts for the username, it still moves on to the password instead of ending. I tried using break after line 18, and even tried systemexit, but it didn’t work.

Any advice on how I should approach this?

Also, for any beginners like me: please code after every little thing you learn. I learned this the hard way, so now I’m starting back from day 1 and making sure to implement what I study with at least 30 minutes of solo coding at the end of each study session.


r/PythonLearning • • Sep 19 '25

Day 4

Thumbnail
gallery
96 Upvotes

r/PythonLearning • • Aug 31 '25

Im dumb (for context). Can someone explain the difference in line 15 and 18

Post image
95 Upvotes

r/PythonLearning • • Aug 28 '26

3 months and 1 week

Post image
94 Upvotes

Started from arithmetic on may 20th
Then python and some basics of numpy. Today wrote my first linear regression, it’s bare-bone but it was fun seeing it get good.


r/PythonLearning • • Jun 15 '26

Second day in Python, first project🤞🥹

Post image
94 Upvotes

In the process of learning my first programming language. Any tips to learn it much faster?


r/PythonLearning • • Mar 31 '26

How do I improve my Python skills as a beginner?

94 Upvotes

Hi everyone,

I’ve started learning Python and know the basics, like loops, functions, and simple programs.

But I’m not sure how to move forward and actually improve my skills. I don’t want to just watch tutorials; I want to get better at coding and problem-solving.

What should I do next?
Should I focus on projects, practice problems, or something else?

Any simple advice would really help 🙏


r/PythonLearning • • 5d ago

Help Request what is the error i don't get it

Post image
93 Upvotes

r/PythonLearning • • Oct 02 '25

Day 5 of 100 days of python

Post image
93 Upvotes

Made a password generator so hackers wont be able to hack yall accounts ;).Rate my ATM!


r/PythonLearning • • Dec 24 '24

My first large project (number guessing game) I’m so proud of myself! What do you think I can improve on? Advice?

Post image
93 Upvotes

r/PythonLearning • • Apr 28 '26

Dynamic array from scratch (DSA)

Thumbnail
gallery
92 Upvotes

r/PythonLearning • • Oct 17 '25

Can a 40 year old guy learn python within 6 months ?

92 Upvotes

Just what the title says or is it too late ?

I work in a bank but i dont like my job.


r/PythonLearning • • Aug 24 '25

Day 1 : Learning Python

Thumbnail
gallery
92 Upvotes

Started Learning python :

Topic I covered

  • comments, data types and variables

  • arithmetic opertions

  • string formatting && basic I/O

  • functions, Loops, conditionals


r/PythonLearning • • Apr 18 '26

I have maked successfully a program that can test input has letter or number.how can I improve this?

Post image
91 Upvotes

Hi everyone.

I have maked a code that can tell it has number or letters.i know only Basic functions on python and some lines i don't know I am using AI for learning python and I haven't copied that from AI.and error appeared about 50 times which is double of lines of code.And my goal is to make a powerful AI after learning python.

And please upvote and write things that I can improve.


r/PythonLearning • • Oct 06 '25

Help!

Post image
91 Upvotes

I’m taking a coding course to learn Python. However, I’ve been stuck on this question for about two days now. I’ve tried rewriting the code to where the name and last name are on the same line and it still says I have an extra row. How can I fix this issue and what did I do wrong? I want to make sure I fix my mistake and understand what I did wrong.


r/PythonLearning • • Aug 29 '25

Day 6 Learning Python : File Handling

Thumbnail
gallery
91 Upvotes

Revisited the python file handling understand more about
how to
- create file
- read file
- delete file
- append data into file


r/PythonLearning • • Aug 31 '26 Mindblown

DAY 5.

Post image
90 Upvotes

DID LIST TODAY THE CONCEPT WAS PRETTY COOL AND WROTE THIS PROGRAM TO GET HOLD OF THE LIST ANY OTHER CODE IDEAS OR SUGGETIONS TO ENHANCE CODE ?!


r/PythonLearning • • May 07 '26

3 best books to learn Python if you are just starting out

90 Upvotes

Python Crash Course: A Hands-On, Project-Based Introduction to Programming

Author: Eric Matthes

This book will teach you the basics first before introducing the real projects. It also contains the most up-to-date version of the latest Python code and practices. You will learn how to build charts, graphs, web applications, and even simple video games.

Head First Python: A Brain-Friendly Guide

Author: Paul Barry

If you are a visual learner and hate text-heavy books, this book is the perfect fit for you. It is based on the latest research in cognitive science and learning theory to help you quickly grasp Python's basic fundamentals and learn to build your web apps in no time.

Learn Python 3 the Hard Way: A Very Simple Introduction to the Terrifyingly Beautiful World of Computers and Code

Author: Zed A. Shaw

This book has a total of 52 exercises to help you learn Python through a step-by-step process. It also comes with 5+ hours of video where the author goes through the process of breaking, fixing, and debugging code. You will learn how to read, write, think, and breathe Python, and also understand what the right code should look like.


r/PythonLearning • • Apr 01 '26

Help Request What are some Python scripts have you guys made for daily life use or fun ?

90 Upvotes

I like programming python, but when I want too program something I don't have any ideas, because I've made a bunch of scripts, with different modules, and things, but I don't know what I can do now. It's like that sense you think you've done everything but not.

Can you guys give me some ideas so I can do something and entertain ?


r/PythonLearning • • Sep 30 '25

Showcase Made a Logic Gate thing. I know I probably overdid the one line functions (especially on buffer), but i wanted it to all be one line.

Post image
90 Upvotes

r/PythonLearning • • Aug 14 '25

Fairly new beginner, what could i improve? Made this in ~20 minutes

Post image
90 Upvotes

r/PythonLearning • • Jul 25 '25

Showcase Name Rebinding

Post image
90 Upvotes

See Solution made using memory_graph.