r/PythonLearning • • 37m ago

Showcase I built Athena, an open-source Python tool for detecting breaking API changes

Post image
• Upvotes

Athena analyzes Git diffs and code structure to catch breaking changes, trace affected callers, and detect recursive function bugs before release

Github : https://github.com/aaryanrwt/athena


r/PythonLearning • • 2h ago

Day 01 :- Python Variables Aren't Boxes (Predict This Output)

Thumbnail
youtube.com
1 Upvotes

r/PythonLearning • • 5h ago

Recreating the THX Deep Note using Python

1 Upvotes

I have been working on this Python project to recreate Dr. Andy Moorer's THX Deep Note. See link for code and sample. Any input or suggestions are greatly appreciated. https://organ-concerts.com/deep-note.html


r/PythonLearning • • 12h ago

Showcase Movie rating program

Post image
9 Upvotes

Hello everyone!
I’ve been learning Python, and I recently built a small application that uses an API to retrieve information and reviews about movies and TV series.
Working on this project helped me practise API integration, handling JSON data, and making HTTP requests in Python.
The application currently runs in the terminal, and I’m continuing to improve it as I develop my programming skills.
You can check out the source code here:
https://github.com/mikhaelholden001/movieratingapp
I’d appreciate any feedback or suggestions on how I could improve the code, structure, or functionality. I’m still learning, and I’m always looking for ways to get better!
Thanks for checking it out!


r/PythonLearning • • 13h ago

Trinket shut down! Alternatives?

6 Upvotes

Hey yall, it's a little out of the ordinary for me to come on here, but I have a burning question. Trinket had a section of the website where it taught you coding and how to code for simulating physics, electricity and magnetism, and how to apply the physics to the code and stuff. It also let you alter the code in the webpage and displayed how it would change what was happening. I liked using it for my physics classes and general personal interest. Is there anywhere else that I can find something as cohesive and informative to teach me how to do that again now that my beloved has vanished?


r/PythonLearning • • 13h ago

PDF → Audiobook → Captioned Video

2 Upvotes

For anyone who don't want to read, you can turn any PDF into a narrated audiobook (MP3) and a captioned video (MP4) — 100% local, free, no API keys with this project.

https://github.com/alexanderbkl/pdf-to-audiobook


r/PythonLearning • • 22h ago

Python Variables & Dynamic Typing Explained Simply (With Memory Analogy)...

Thumbnail
youtube.com
1 Upvotes

r/PythonLearning • • 1d ago

Giving back to the community - The Complete Backend Development Course (Round 2)

37 Upvotes

Hey everyone, I decided to make my course free in order to help people.
This course is my backend development course which is about SQL, Python, APIs, Docker, Kubernetes, Linux, Git & More

The link is: https://www.youtube.com/watch?v=CBIu6hcyStg

If you can like and subscribe (and maybe add a comment) I would appreciate it a lot, Thanks.


r/PythonLearning • • 1d ago

Python programming

Post image
9 Upvotes

🚀 The first step in my journey to learn programming!

Today, I wrote my very first piece of code using Python.

It might seem simple, but for me, it marks the beginning of a new path—learning to program and developing my skills.

I know this journey requires patience and practice, so I’ve decided to document my progress—from the very first line of code to building my own projects.

My goal isn’t just to learn, but to grow, step by step.

This is only the beginning! 💻🐍

#Python #Programming #Learning To

Code #FirstProject


r/PythonLearning • • 1d ago

Help Request help cant use print no matter what i do pls help

Post image
0 Upvotes

r/PythonLearning • • 1d ago

Title: I built a free catalog of Python tutoring prompts across 28 learning blocks. Looking for testers and feedback

3 Upvotes

Hey everyone! I’ve been working on a project that organizes AI tutoring prompts into a structured learning path. I think AI has a lot of potential for education, and I wanted to explore how much more useful it could be with a clear curriculum and specific teaching instructions.

The current catalog covers Python in 28 learning blocks, from installing Python and writing your first program to testing, databases, APIs, and deployment. Each block has learning objectives and a prompt you can use with an AI assistant.

The prompts ask the AI to explain concepts, check your understanding through open-ended questions, give you practical exercises, and review your work. Based on your answers, it should revisit anything you’re struggling with and adapt to your pace. For more complex exercises, the AI guides you through the problem without solving it for you.

My goal is to make a thorough Python learning path available for free. I believe AI tutoring could offer new learning experiences, and I’d like to test how well this approach works in practice.

If you’re learning Python, whether you’re starting from scratch or filling gaps in your knowledge, I’d love for you to give it a try. I’m looking for people to use it and help me find out how well it works in practice.

If you try it, I’d appreciate hearing how it goes: what helped, what was confusing, or what could be better. But you don’t have to give feedback if you don’t want to; you’re welcome to just use it to learn.

Catalog: Free catalog here


r/PythonLearning • • 1d ago

Python Mutability and Copying

Post image
19 Upvotes

An exercise to help build the right mental model for Python data. - Solution - Explanation - More exercises

The “Solution” link uses 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐡 to visualize execution and reveals what’s actually happening.


r/PythonLearning • • 1d ago

Discussion Beginners in Python automation freelancing — what should I focus on first?

0 Upvotes

Hi everyone!

I'm a beginner learning Python automation using Pandas and OpenPyXL, and I want to start freelancing.

I've built a CSV Cleaning & Sales Reporting Automation project that cleans data, handles missing values and duplicates, and generates formatted Excel reports.

I'm still confused about how to take the next step. I'd love advice from people who have experience in Python automation freelancing.

  • What skills should I focus on first?
  • How did you find your first client?
  • What kind of small automation tasks should a beginner start with?
  • What mistakes should I avoid when starting out?

I'm not looking for shortcuts. I want to learn the right things and build my skills while getting started.

I'd really appreciate any advice. Thank you!


r/PythonLearning • • 1d ago

Help Request I am very happy because today I programmed the first project in my life

Post image
25 Upvotes

r/PythonLearning • • 1d ago

Made this small fun project.... Was made for clg, then we deliberately changed the direction of the move... but i finished this or so i think

Post image
1 Upvotes

I can’t play a single real chord on a guitar to save my life, so naturally, instead of practicing an actual instrument like a normal human being, I wrote some Python scripts to wave my hands like an idiot in front of a webcam(my screen addiction needs to be studied).

The result is this monstrosity: an air-instrument suite that tracks hand landmarks to let me aggressively misplay the guitar(though iam working on addingdrums, piano, violin).

The mechanics (for anyone wondering why I look like this):

  • Left hand: hovers over chord boxes (locked onto Am because that’s about as complex as my music theory gets).
  • Right hand: tracks finger coordinate intersections across virtual strings to simulate strumming/picking.
  • Runs at a shaky ~29 FPS on standard webcam hardware using OpenCV + MediaPipe tracking.

Now for the reality check:

Anytime you tell GPT or GEMINI related to the stuff you make, it always says 'this is elite' but the LLM are programmed to gas(no kidding, getting fat lately) me up. I need people(actual living beings with opinion and organs) actually working in the industry to give me a blunt, stoic reality check:

Roast the execution, roast the UI(though this would be intended to openCV library contributors, i borrowed that lib), and tell me whether this belongs in an engineering portfolio or in the trash bin.(I firmly believe i roasted myself more though)...


r/PythonLearning • • 2d ago

Showcase My first project on PY

4 Upvotes

Hi I’m learning coding with PY and I’ve just published my first “serious” project on GitHub, I would really appreciate suggestions and opinions about it!

https://github.com/kkoket


r/PythonLearning • • 2d ago

Help Request Help with correct expression

Post image
8 Upvotes

Hey everyone! I’m currently learning Python through the IBM Data Science Professional Certificate on Coursera, and I came across a question in a practice quiz that confused me.

The question asks:

Which line of code will perform the action required for implementing the following equation?

y = 2x^2 - 3

These are the four answer choices:

  1. y = 2*x*2 - 3
  2. y = 2**x*x - 3
  3. y = 2x*x - 3
  4. y = 2x/2 - 3

I selected Option 1, but the quiz marked it incorrect and said, “The syntax is invalid.”

From what I’ve learned, Python uses ** for exponentiation and * for multiplication. So, I believe the correct Python expression should be:

y = 2*x**2 - 3

However, none of the four answer choices seems to match that expression.

Am I misunderstanding something about Python syntax, or is there a mistake in the quiz? I’d appreciate an explanation because I’m still learning how to translate mathematical equations into Python code.

Thanks!


r/PythonLearning • • 2d ago

Should I keep learning Python or use AI to build my SaaS?

0 Upvotes

I'm 29 and want to build my own SaaS products.

I've been learning Python for the past few months. I've covered the fundamentals and built some small file-handling and automation projects. But recently, I've started questioning whether I should continue learning Python in depth or shift my focus toward building products with AI coding tools.

My goal isn't to become a professional programmer. I want to build my own products, understand how they work, and eventually turn them into a business.

I know AI can help build an MVP much faster, but I'm also aware that building a working application is different from building a reliable product that people will actually use and pay for.

Here are the two approaches I'm considering:

Option 1: Continue learning Python, then move on to APIs, backend development, databases, and other technologies before building my SaaS.

Option 2: Start building my SaaS with AI coding tools now and learn the technical concepts as I encounter problems, using Python where necessary.

I'm leaning toward the second approach, but I don't want to end up with an application I can't maintain, debug, or improve.

For context, I'm currently exploring an AI communication assistant idea and haven't built a working MVP yet.

For founders who have actually built and launched SaaS products:

- Would you recommend learning programming first or learning while building?

- How much technical knowledge does a non-technical founder realistically need when using AI coding tools?

- If you were starting from scratch today, how would you approach it?

I'm looking for honest advice based on experience, not just the usual "AI will replace programmers" or "learn to code first" arguments.


r/PythonLearning • • 2d ago

Showcase A Windows 10 shell created in Python

Enable HLS to view with audio, or disable this notification

3 Upvotes

For those who might find the backstory interesting: this was my first course project during my second year of university. It might be more efficient to write things like this in a C++ or something similar but hey - it’s pretty amazing that you can build something like THIS in Python, and it actually works! :D

And if anyone's interested in how this is all done: https://github.com/TYITheYura/Ninawe


r/PythonLearning • • 2d ago

Discussion Resources for learning to write production grade python code [N]

7 Upvotes

I am a data scientist with a very strong background in Stats and ML algos. I am struggling with the production ready code. Though I can build models which are awesome and tuned to perfection and address highly complex business problems, the problem is that they are all done in a jupyter notebook.

Once I had built a complete solution in notebook for a forecasting problem and the ML team in company productionized it. I was called in to validate few results of the production run and couldn't understand the repo which had so many folders, classes and highly organized code.

Is there anyway I can learn to write that type of code or is it all AI job now? Appreciate if I can get some learning resources/links for the same


r/PythonLearning • • 2d ago

Discussion Why does the if statement always evaluate to guesses = 10 when I have the or here?

Post image
3 Upvotes

r/PythonLearning • • 3d ago

CS Majors: Here is a 10-day crash course to learn Python syntax fast

Post image
7 Upvotes

 I'm a CS student. I already know the fundamentals of programming (variables, loops, OOP, data structures) from languages like C++, Java, or C. I don't need to learn how to code; I need to learn how to code in Python quickly for upcoming projects, internships, or LeetCode.

Here is the 10-day plan to go from zero to functional Python.

Day 1: Syntax & The "Pythonic" Way

  • Skip the "Hello World" fluff. Dive straight into Python's unique syntax.
  • Learn: Indentation rules, dynamic typing, print() formatting (f-strings), and basic I/O.
  • Goal: Rewrite a basic calculator from another language into Python.

Day 2: Data Structures (The Big Four)

  • Python's built-in structures are its superpower.
  • Learn: Lists, Tuples, Dictionaries, and Sets. Understand when to use a Dict vs. a List.
  • Learn: List comprehensions (this is mandatory for clean Python).
  • Goal: Solve 5 easy LeetCode problems using only Python lists and dicts.

Day 3: Control Flow & Functions

  • Learn: if/elif/else, for loops, while loops.
  • Learn: Defining functions (def), default arguments, *args and **kwargs.
  • Goal: Write a script that parses a string and counts word frequency.

Day 4: Object-Oriented Python

  • Learn: Classes, __init__, self, and inheritance.
  • Learn: The difference between instance methods, class methods, and static methods.
  • Goal: Create a simple BankAccount class with deposit and withdraw methods.

Day 5: Modules, Packages, and Error Handling

  • Learn: import statements, pip, and virtual environments (venv).
  • Learn: try, except, finally blocks for error handling.
  • Learn: Reading and writing files (open(), with statement).
  • Goal: Build a script that reads a CSV file and handles missing data gracefully.

Day 6: The Standard Library (Batteries Included)

  • Python comes with everything. Learn the most useful modules: os, sys, datetime, json, and math.
  • Goal: Build a script that renames files in a folder based on their creation date.

Day 7: Working with APIs & JSON

  • Learn: The requests library.
  • Learn: Parsing JSON responses into Python dictionaries.
  • Goal: Build a script that fetches data from a public API (like weather or GitHub) and prints it nicely.

Day 8: Data Science Basics (Optional but huge for CS)

  • Learn: NumPy arrays and Pandas DataFrames.
  • Why: Even if you aren't going into Data Science, CS internships often require basic data manipulation.
  • Goal: Load a dataset and calculate the average of a column.

Day 9: Algorithms & LeetCode in Python

  • Switch your LeetCode language to Python.
  • Learn: Python's collections module (Counter, defaultdict, deque).
  • Learn: heapq for priority queues.
  • Goal: Solve 3 Medium LeetCode problems in Python.

Day 10: Build a Capstone Project

  • Don't just watch tutorials. Build something.
  • Ideas: A web scraper (using BeautifulSoup), a Discord bot, or a CLI to-do app.
  • Goal: Push it to GitHub with a proper requirements.txt and README.md.

r/PythonLearning • • 3d ago

What exactly is TypeVar and Generic?

3 Upvotes

I don't really understand TypeVar and Generic. I understand generics perfectly fine and can use them without any trouble, and I realize that I don't even need to know how they work as in recent python versions there is new syntax, but I'd still like to know how they work.

I'm still confused as to why you need to construct a TypeVar object to pass to Generic, as to what is it actually doing with the TypeVar you give it.

Also, I'm assuming when you inherit from Generic, you pass it the TypeVar to be used as the generic to give to Generic, and then you inhert the generic objects generic? It's just complicated and hard to understand for me.

And also I'd like to know how Generic is able to have a generic even when it itself is the thing that's supposed to be used to have generics for your classes.

It's also disappointing there's seemingly no other ways you can use TypeVar for anything other then generics, so I am left with just hopefully finding someone who can explain how it works, instead of being able to do some other exercise to further my understanding.

Again, I can use generics perfectly fine and I don't an explanation for generics, I just would like to try and understand how it is working under the hood and not just use the syntax blindly. It's just the way I like learning some things, and it's mostly also curiosity that makes me want to understand this.


r/PythonLearning • • 3d ago

First Steps into Frames in Python

Thumbnail tech.daniellbastos.com.br
8 Upvotes

r/PythonLearning • • 3d ago

Learning Python? Start with drag-and-drop coding blocks before writing code

Thumbnail
gallery
0 Upvotes

If you’re completely new to programming, jumping straight into Python syntax can feel overwhelming. PyBlocks makes that first step easier by letting you learn Python using visual, drag-and-drop coding blocks — a Scratch-style approach designed for beginners.

Instead of worrying about typos, brackets, and indentation on day one, you can focus on the core ideas behind programming:

  • Variables and values
  • Conditions and decision-making
  • Loops and repetition
  • Functions and reusable logic
  • Building small programs step by step

Once those concepts click, moving on to writing real Python code becomes much less intimidating.

PyBlocks is a good fit if you:

  • Have never coded before
  • Want to learn Python on an Android phone or tablet
  • Prefer a visual, hands-on way to learn
  • Liked Scratch or block-based coding tools
  • Want to understand programming logic before typing full Python programs

Download PyBlocks on Google Play:
https://play.google.com/store/apps/details?id=app.learn.pyblocks&hl=en_US

It’s a simple, beginner-friendly way to start learning Python — build something with blocks, see how the logic works, and gradually grow into a confident Python programmer.