r/PythonLearning • • Oct 20 '25

Discussion How I learned Python

162 Upvotes

I spent the last year learning Python and producing an animated Discord bot with thermal monitoring, persistent learning, deterministic particle effects, and a lot more. It's a lot of work but I was able to learn an insane amount quickly. I was wondering if anyone wanted help getting going on Python?

Im a teacher professionally and think the way I learned was really accelerated. I was going to offer it to others if anyone needs help.

Let me know!


r/PythonLearning • • Aug 28 '25

Ive ben working on a text ad enture pokemon red.

Post image
161 Upvotes

I posted this in r\code and it got removed and i got muted for three days, losers didnt even explain why. Anyway ive got like 7 jsons wired in together with move sets, level trees, species, pokemon ids and evolutions etc. Almost done getting the systems set up and onto the easy part of the dialog and encounter placements. Each route will have 10 random chance encounters, im not sold on that yet though i just want to stay fairly true to exp requirements, but that may feel agonizing and i might go with trying to aim for speed runs, with like a limited number of encountwrs and bonus exp. I might just add a feature that lets you toggle bonus exp. I need help with making a system for regions where pokemon are found...it might be faster to manually populate the routes and special areas though.


r/PythonLearning • • Aug 09 '26

Discussion Good resource for starting off?

Post image
159 Upvotes

I am not exactly a complete beginner in programming itself. Just want to learn the basic syntax and workflow in Python!


r/PythonLearning • • Sep 04 '25

I started coding in python.

Post image
159 Upvotes

r/PythonLearning • • Oct 02 '26 Bravo

just finished my first Python coding challenge

Post image
158 Upvotes

Today I finished a small Python challenge on freeCodeCamp: converting decimal numbers to binary without using Python's built-in conversion function.

I had to figure out the logic myself using loops, conditions, lists, division and remainders.

It was a bit tricky at first, especially handling the last division and reversing the results, but I finally got it working.

I'm still a beginner, so I'd appreciate any feedback on my approach or suggestions for improving my code


r/PythonLearning • • May 08 '26

Beginner to programming

Thumbnail
gallery
158 Upvotes

Hello :)

I'm made a calculator, any advice for improve?


r/PythonLearning • • Jun 17 '26

Showcase I built AeroPuzzle – a real-time hand gesture puzzle game using OpenCV and MediaPipe

157 Upvotes

Hi everyone!

I recently built AeroPuzzle, an interactive puzzle game where you solve image puzzles using only air gesturesβ€”no mouse or touch input required.

The project uses OpenCV and MediaPipe for real-time hand tracking and gesture interaction. I built it to explore computer vision in a fun and practical way while improving my understanding of real-time image processing.

Features:

  • πŸ–οΈ Hand gesture-based controls

  • 🧩 Real-time puzzle interaction

  • πŸ“· Webcam-based tracking

  • ⚑ Smooth gameplay with computer vision

I'm still improving the project and would love feedback from the community.

  • What could be improved?

  • Are there better approaches for gesture smoothing or tracking stability?

  • Any ideas for additional features?

https://www.linkedin.com/posts/aarthirt14_python-opencv-mediapipe-ugcPost-7472675540605370369-uNol/?utm_source=share&utm_medium=member_desktop&rcm=ACoAAFfTgXABGG51AvZIngpYJAmCoZeEzjowCow

Thanks for taking a look!


r/PythonLearning • • May 19 '26

My 1st python project. Suggestion accepted

Thumbnail
gallery
157 Upvotes

This is my 1st python project I did using the knowledge i currently have.

I know that this code is very messy and unreadable(iam a absolute beginner.)

I did use chatgpt to help with choice 2 but I didn't just copy paste the code. I learnt a new function and it's use. - enumerate () function.

Rest all is my idea and my built upon my logic.

- What things could I make it better to make this code readable.

- I don't know about functions and error handling yet.

But when I learn I will implement it in this project.

Your SUGGESTIONS/COMMENTS are highly APPRECIATED :)


r/PythonLearning • • Oct 08 '25

Showcase Started freestyling as a newbie. How this so far?

Post image
157 Upvotes

r/PythonLearning • • Sep 02 '26

Discussion Stop suggesting to use AI

155 Upvotes

I’ve recently started getting more posts from this sub and some people have genuine questions on how to solve their programming problems and help debug. Some comments are suggesting to just use AI. This is a crazy suggestion on a sub called Python LEARNING. Using AI to write code for you is not constructive to learning how to code. I fear that this generation of programmers are going to have ZERO understanding fundamentals.

To be clear, I’m not against using AI to help assist. But this is supposed to be a sub for learning the language and understanding how it works, and it’s counterproductive to suggest those that are learning to just use AI to fix their code.

Please, if anyone suggests to use AI (unless it’s for the rare case that it’s valid), please downvote them to oblivion.


r/PythonLearning • • Mar 26 '26

Day 14: Built a Grade Analyzer β€” first time writing functions that actually do one job cleanly

Thumbnail
gallery
155 Upvotes

Day 14. Today felt easier than the last few days and I think that's the point β€” concepts are starting to compound.

Built a Student Grade Analyzer that reads a CSV, calculates averages per student, finds the topper, and flags anyone failing.

What I focused on today β€” writing clean single-purpose functions:

calculate_average(scores) β€” takes a list, returns average. Two lines.

find_topper(student_data) β€” one line using max() with key=dict.get

failing_student(student_data) β€” loops through dict, returns list of names below threshold

print_report(student_data) β€” formats and prints the full summary

Learned something small but important: don't wrap a print() function inside another print() β€” you'll get None in your output because the function returns nothing.

Yesterday's ExpenseOS felt hard. Today felt easy. That gap closing is what 14 days of daily building looks like.


r/PythonLearning • • 13d ago

I made a Diwali diya out of 1000s of ASCII characters, live in the terminal

154 Upvotes

Happy Diwali! In advance πŸͺ”

Code: https://github.com/Jaym-0/ascii-diya

A diya animation that runs entirely in the terminal, with no GIF, video or GUI.

It starts from darkness, and sparks gather into a flickering flame and bowl.

Built with Python + numpy, using ANSI true-colour and a simple particle and

flame simulation. Only changed cells are redrawn, so it runs at 30 FPS.


r/PythonLearning • • May 06 '26

Can I do this more efficiently?

Post image
153 Upvotes

I am working through Al Sweigart’s book β€˜Python Programming Exercises, Gently Explained’ and just completed exercise 6:
β€œIn English, ordinal numerals have suffixes such as the "th" in "30th" or "nd" in "2nd". Write an ordinalSuffix() function with an integer parameter named number and returns a string of the number with its ordinal suffix. For example, ordinalSuffix(42) should return the string
'42nd'.”
Can I improve my solution? I feel there must be a more pythonic way of doing this, I’m not very happy with converting the integer to a string and then to a list.


r/PythonLearning • • Sep 10 '25

Help Request my teacher does not help me, i am hoping someone here can!! thank you!!

Post image
153 Upvotes

okay, i am a complete and absolute beginner with coding and scripting, i have been searching for answers online but due to my lack of knowledge i have no idea how to use the information i find and my teacher is terribly unhelpful lol. here is all of the information i think may be important:

-all of this is happening in a vm running Windows 10 in Oracle Virtualbox

-i have installed the PowerShell extension thing from Microsoft in VS Code

-i have installed Python, Python Debugger, Python Environments, and Pylance extensions in VS Code

as shown in the photo, the assignment i've been given is to submit a screenshot of the successful output from the print("Hello, World!") string, however it just gives no output. no error message or anything, just... nothing. I did contact my teacher and i shit you not his response was "Lmao. Idk bro" so... hoping someone can help me here!

as i said i am a complete beginner so i appreciate any patience and kindness and help i can get !! thank you for reading!

edit: THANK YOU SO MUCH TO EVERYONE WHO REPLIED!!! i appreciate all of you, your time, patience and kindness!!! the issue ended up being 2 things:

  1. I wasn't in the right directory lol

  2. my terminal was a PowerShell terminal, not a command prompt terminal.. i had no idea i was supposed to see the output in command prompt lol ToT

again thank you everyone i appreciate u all and i hope u all have a wonderful day / week / month / year / life and good luck with all this python stuff lol!


r/PythonLearning • • Sep 19 '26

Showcase After finally learning while loops i decided to write a program that relies completely on them. How did i do? What can i do to make it easier to read? Any feedback is appreciated!(im only 7 hours in so still a complete beginner lol)

Thumbnail
gallery
150 Upvotes

r/PythonLearning • • Oct 13 '25

Showcase Seeking Feedback on My First Python Project: Calculator .

Post image
149 Upvotes

I have recently completed my first Python project, which is a calculator, and I would greatly appreciate feedback from the community. This project represents my initial foray into Python development, and I am eager to learn from more experienced developers about both my code quality and overall approach.

You can review the project by visiting my GitHub repository at: https://github.com/aryanisha1020-commits/Self_Practice_Python-.git

I am particularly interested in receiving constructive criticism regarding code structure, best practices, potential improvements, and any suggestions you might have for future enhancements. Whether you are a seasoned developer or a fellow beginner, your insights would be valuable to my learning journey.

Please feel free to provide feedback either here on Reddit or directly on GitHub through issues or comments. I am committed to improving my skills and welcome all perspectives, whether they address functionality, code readability, documentation, or programming conventions.

Thank you in advance for taking the time to review my work. I look forward to learning from this community's expertise.

@Aryan Dixit


r/PythonLearning • • May 26 '26

If you are still confused on their difference

Post image
148 Upvotes

r/PythonLearning • • Apr 25 '26

Discussion Mon premiers ligne de code

Post image
147 Upvotes

r/PythonLearning • • Feb 23 '26

Free Python Classes through Code in Place (application closes April 8th, 2026)

147 Upvotes

Thanks mods for letting me share this amazing education opportunity.

RE: Learn Python through a free program called Code in Place.

Learn Python through a free program called Code in Place. It’s based on Stanford’s intro programming course (CS106A) and is designed specifically for complete beginners.

It runs for 6 weeks (mid April through mid May), fully online, about 4-7 hours per week depending on how fast you learn.

There is structure and the community, not just random tutorials. There are real assignments, weekly live small group sections, live tutoring, weekend tutoring, Monday Recaps, and instructors you could actually talk to.

If you’re curious about Python but feel overwhelmed by where to start, this is honestly one of the most beginner friendly structured options.

The program is:
β€’ Free

β€’ No prerequisites

β€’ Fully online

β€’ Age 16+

β€’ Applications close April 8

β€’ Classes start week of April 20

Please use the link for more info:Β https://codeinplace.stanford.edu/public/join/cip6?r=usa

PS. They are looking for volunteer section leaders. Also, no teaching prereqs or experience required, just the love of Python and helping people.

Please know that I am happy to answer questions if you’re curious what it’s actually like. This goes for volunteer section leaders and students.

Cheers :)


r/PythonLearning • • May 25 '26

Trie Data Structure Visualized

146 Upvotes

Ever wondered what a Trie actually looks like in memory?

A Trie is a tree of dictionaries, often used for problems like:

  • prefix search

  • word completion

  • spell checking

  • sequence matching

But when you implement one in Python, it can quickly become hard to β€œsee” what is going on. That is where 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐑 helps.

It visualizes the actual Python objects: dictionaries, references, nested structure, and how the Trie grows step by step. Instead of only reading code, you can see the data structure being built in memory.

Run the Live Demo.

Visualizing data structures this way can make them much easier to understand and debug, especially for students learning Python.

See more 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐑 examples.


r/PythonLearning • • Sep 20 '25

What's wrong

Post image
144 Upvotes

Tab wrong? How to solve


r/PythonLearning • • Feb 14 '25

guys I think i'm finally starting to code. what do you think !!

Post image
144 Upvotes

r/PythonLearning • • May 15 '26

Common π˜€π—²π˜ operations in Python

Post image
143 Upvotes

r/PythonLearning • • Mar 08 '26 Bravo

What app to learn Python?

Post image
143 Upvotes

What app should I use to learn python, I've been using Mimo for a while now but I think there are better app out there.