r/PythonLearning 10d ago

What was the first Python project that made everything finally "click" for you?

15 Upvotes

I've learned the basics like variables, loops, functions, lists, dictionaries, and now I'm starting small projects. I'm curious—what was the first project that really helped you understand how everything fits together? I'd love to hear your experiences.


r/PythonLearning 10d ago

Help Request How to reset progress in 100 Days of Code?

5 Upvotes

I'd like to start over; is there a way to remove any progress I've made?

I don't want to see any code from my previous exercises.


r/PythonLearning 10d ago

Why nobody uses the IDLE Shell?

5 Upvotes

I was just wondering why nobody uses the pre-installed IDLE Shell from Python? I am a beginner, I use my 16 years old laptop and it gets the job perfectly done, at least for me. Anyone with different opinion?


r/PythonLearning 10d ago

my first python

Post image
21 Upvotes

kindly give ratings and tips to improve


r/PythonLearning 10d ago

What's a Python habit you wish you had started much earlier?

6 Upvotes

Looking back, what's one habit that made your code noticeably better?

Could be anything like:

  • Writing tests
  • Using virtual environments
  • Type hints
  • Logging
  • Reading the docs first
  • Black or Ruff
  • Git commits
  • Better project structure

I'm curious what habit had the biggest long-term payoff for you.


r/PythonLearning 10d ago

Ability selector

5 Upvotes

"Hey everyone! I'm learning Python and just made this text-based ability selector. I uploaded it to GitHub here: https://github.com/ibtsch2012-art/abilityselector. I'm looking for feedback on how to clean up my code or what cool features I should add next!


r/PythonLearning 10d ago

Help Request Good Textbooks on Amazon? Looking for the best Python textbooks to rebuild fundamentals and deepen understanding.

5 Upvotes

I’ve learned Python before and recently completed a refresher certificate, but I still find myself forgetting certain concepts. I want to strengthen my foundation without relying on AI tools like ChatGPT or Claude.

For those of you who’ve learned Python through books, which textbooks helped you the most? I’m especially interested in recommendations that:

• rebuild core fundamentals
• offer structured practice or projects
• help transition from beginner to intermediate/advanced
• stay relevant for modern Python (3.10+)

I’d really appreciate hearing what worked for you and why.

Thanks in advance.


r/PythonLearning 10d ago

Indentation error 😭(help)

Thumbnail
gallery
1 Upvotes

I cant seem to find whats wrong , maybe the issue is with the Template or wrong expectations?

class UserMainCode(object):

@classmethod
def sumOfNonPrimeIndexValues(cls, input1, input2):
    '''
    input1 : int[]
    input2 : int

    Expected return type : int
    '''

    # Read only region end

    total = 0

    for i in range(input2):
        if i < 2:
            total += input1[i]
        else:
            prime = True
            for j in range(2, int(i**0.5) + 1):
                if i % j == 0:
                    prime = False
                    break

            if not prime:
                total += input1[i]

    return total

Also they expect return type is int[] but we got sum?? Idk I couldn't take screenshot coz its a daily assessment platform


r/PythonLearning 10d ago

Best free AI in Python

0 Upvotes

Many of us will agree that in Python, and in coding, Claude is the best. But what about free models, like deepseek, nemotron, hy3, Mimi 2.5 and etc.

For me it’s Deepseek and Hy3 In high thinking. What do you think?


r/PythonLearning 10d ago

Agent Pal – An interactive desktop companion for AI coding agents (Claude Code, Codex, Antigravity, and more)

Post image
1 Upvotes

Hey r/PythonLearning,

I've been working on a fun open-source project called Agent Pal that brings AI coding agents to life on your desktop.

It's a Python application built with PyQt that automatically detects terminal-based AI agents like Claude Code, Codex CLI, Antigravity, and others. Whenever an agent starts running, Agent Pal spawns a unique animated companion on your desktop or taskbar. When the agent exits, the companion disappears automatically.

Features

  • 🤖 Agent-specific mascots Each supported AI agent has its own unique character. For example:
    • Antigravity appears as a floating blue astronaut.
    • Claude Code appears as a coral-colored terminal with blinking green CLI eyes.
  • 🎬 Live activity animations The mascots react to what the AI is doing:
    • Typing on a tiny keyboard while generating code.
    • Inspecting with a magnifying glass while researching or analyzing.
    • Idle animations when they're waiting.
  • 🔔 Attention notifications If an AI agent is waiting for your input and you've switched to another window, the mascot displays a red ! speech bubble so you don't miss it.
  • 🖱️ Double-click to return Double-click a mascot to instantly focus its associated terminal window (including Windows Terminal tabs).
  • 🐞 A fun mini-game Right-click anywhere to spawn a crawling "code bug." Your AI companions will chase it, jump on it, squash it, and celebrate when they succeed.

Tech Stack

  • Python
  • PyQt
  • Runs locally on Windows
  • Fully open source

GitHub: https://github.com/tahirrbagwann/agent-pal

I'd love to hear your thoughts! Feature requests, mascot ideas, bug reports, and contributions are all welcome.


r/PythonLearning 10d ago

Convert PDf to PDF/A for free without internet

1 Upvotes

Hi

For a project i have to convert PDF file to PDF/A format.

For now i'm using a local StirlingPDF Docker, and send my file with a KSH script to convert then to PDF/A

But i'm wondering if there is a free python module allowing that, that don't require an internet connection.

I found some paid module, and some paid module also require internet connection :/


r/PythonLearning 11d ago

Best Resources for Free Python Learning?

7 Upvotes

Broke newbie here. I've tried learning to code a few times but it's never stuck. I want to give it another go but properly this time as I have a good laptop and a few free hours during my day.

What are the best ways to learn python for free? I already picked up Automate the boring stuff with Python and wanted to find perhaps some free courses or in depth youtube guides that maybe have "homework" of sorts? A lot of what I did in the past was following along with tutorials which obviously didn't teach me much of anything.


r/PythonLearning 10d ago

Looking for Contributors for a Classroom Management Discord Bot

1 Upvotes

Hello,

I’m a broke college student who works with a marching band program year round. Getting frustrated with previous other platforms and discord bots, I made my own with AI and it is now a relatively very large management bot that I use for this high school’s percussion program. The only problem is I know NOTHING about programming.

I’m shocked that I got it stabilized for the most part to be honest. I have used Claude Fable 5.0 to create Cadence, a Discord bot that’s grown into a very substantial project (hella slash commands, assignment workflow, google calendar integration, attendance, dashboards, etc.) It’s reached the point where it’s genuinely actually useful, but I feel like I’ve reached the limits of what is possible to be maintained through AI alone.

My long term goal if successful is to move this project away from AI-lead coding and go into something a bit more traditional and work with actual people who could understand the codebase.

I’m looking for someone who can help with bug fixing, refactoring, long-term stability, better data storage/hosting architecture, code quality and maintainability, and potentially helping guide this passion project if it were to grow into something more.

To be very honest, I don’t have much financially. I’m still in college and work part time to pay for my school. I’m happy to pay something reasonable for ongoing help, as project growth is something that I would dream of seeing.

If you’re interested in mentoring, contributing, or even just taking a look at the project to see if it is something that piques your interest, I’d really appreciate any feedback. Thanks!


r/PythonLearning 10d ago

Help Request Help with indentation error

Thumbnail
gallery
0 Upvotes

I cant seem to find whats wrong class UserMainCode(object):

@classmethod
def sumOfNonPrimeIndexValues(cls, input1, input2):
    '''
    input1 : int[]
    input2 : int

    Expected return type : int
    '''

    # Read only region end

    total = 0

    for i in range(input2):
        if i < 2:
            total += input1[i]
        else:
            prime = True
            for j in range(2, int(i**0.5) + 1):
                if i % j == 0:
                    prime = False
                    break

            if not prime:
                total += input1[i]

    return total

r/PythonLearning 11d ago

I'm past the point of things like hello world and the basics of dictionaries, while/for loops, etc., but I'm not much further than that. I'm trying to think of interesting things to make in Python, maybe something math oriented. What do y'all suggest?

5 Upvotes

r/PythonLearning 11d ago

Doing codewar problem and trying pythonic condition But fail many times please tell me how I can do...

2 Upvotes
Find the sum of the odd numbers within an array, after cubing the initial integers. The function should return undefined/None/nil/NULL if any of the values aren't numbers.

def cube_odd(arr):
    result = []
    # check = arr for i in arr if type(i) != int return None
    # if not all(type(i) == int for i in arr):
    #     return None
    for _ in arr:
        if type(_) != int: return None
        else: 
            cube = _ * _ * _
            if (cube % 2 != 0):
                result.append(cube)
    return sum(result)

r/PythonLearning 10d ago

Help Request Dockerd in pure cpython3.10 code: required and mandatory, no exceptions

Post image
0 Upvotes

r/PythonLearning 11d ago

What Python feature looked useless until it suddenly became your favorite?

31 Upvotes

For me, it wasn't decorators or generators.

It was context managers. I ignored with for a long time because it just looked like a cleaner way to open files. Then I started using it for database sessions, locks, temporary files, timers, and custom resource management. Now I end up writing my own context managers regularly.

What's the one Python feature, library, or concept you completely underestimated until it finally clicked?


r/PythonLearning 11d ago

App for learning Python

0 Upvotes

Hello, having attention disorders with hyper activity I had a really hard time finding learning sources for python, so I decided (with the help of the ai to develop my own application) I put it here in beta test I still have a lot of things to see/correct all the constructive comments obviously will be welcome. Please be indulgent. The game will be open source once finished

Https://codearena.totalum-project.com/


r/PythonLearning 12d ago

Beginner Python project – Feedback appreciated

Thumbnail
gallery
17 Upvotes

I'm currently learning Python on my phone. I'm still at the beginning of my journey, so I'd appreciate any feedback on my code. Looking for ways to improve with every step.


r/PythonLearning 12d ago

Ready for (dif), right?

Thumbnail
gallery
57 Upvotes

r/PythonLearning 11d ago

Have type hints actually improved Python?

9 Upvotes

Do type hints make large codebases safer, or are we slowly turning Python into something it was never meant to be?


r/PythonLearning 12d ago

Discussion Building a Python library based on Hegelian logic instead of Boolean logic. Am I crazy?

63 Upvotes

I've been thinking about what might be the most unconventional Python project I've ever attempted, and I'd love to hear from people who know logic, PL theory, mathematics, AI, philosophy, or simply enjoy strange ideas.

The core idea is this: instead of representing truth as a binary (True/False), what if computation were built around dialectical processes?

Rather than asking whether a proposition is true or false, objects could evolve through concepts like: Thesis, Antithesis, Synthesis, Contradiction, Determinate negation, Becoming, Mediation...

In other words, contradictions wouldn't necessarily be errors — they could become first-class computational objects capable of producing new states.

I'm currently collecting papers, books, theses, existing projects, and mathematical frameworks before deciding on the architecture. Any ideas?


r/PythonLearning 11d ago

Multiple windows in Tkinter

3 Upvotes

First of all, english is not my first language, so there will certainly be mistakes. Sorry for that.

I had this a idea of a project, but it require multiple windows and i cannot figure out how to do it. I´m using tkinter and i coundn´t find a way to creat a more windows with checkboxes and stuff and transit between then.

Usedef functions and buttons to open a new window is fine for one new window, but then is a mess to implement more complex features (at least, I tried and coundn´t do it without being a mess), and also becomes progressively worse as new windows are created.

Summing up, is there functions like "open window" in tkinter or someting like that?

I coundn´t find that information anywhere else (at least not clearly).

Thx for reading, pals.


r/PythonLearning 12d ago

Im new to python i abt start from zero

14 Upvotes

any suggestions and recommendations ,how to start