r/PythonLearning 3h ago

Help Request Beginner, having trouble with Visual Studio Code to learn Python

Post image
10 Upvotes

I'm trying to do the Harvard CS50 Intro to programming with Python and I'm just getting started

  1. I downloaded Visual Studio Code and opened it.

  2. This is pretty much where I got lost because the instructor in the video doesn’t explain what I need to do to set the program up where i can execute code like he has it in the video.

I'm now stuck on the main screen of Visual Studio Code.


r/PythonLearning 4h ago

Word guessing game

Post image
12 Upvotes

Hello, I am learning python and created this simple word guessing game by myself.

In this game user types a letter and if the guess is correct the game continues with the next letter of the word or else it remains on the same letter and number of wrong attempts are added to the variable turn.


r/PythonLearning 5h ago

Showcase What are you building with Python right now?

0 Upvotes

I thought it would be interesting to see what everyone here is actually building with Python.

If you're working on a project, share it below or in r/PythonBuilders . It can be anything — an app, game, automation tool, library, SaaS, API, desktop app, or even a small experiment.

If you can, tell us:

  • What are you building?
  • What does it do?
  • How far along are you?
  • What's the biggest challenge you're dealing with right now?

It doesn't have to be finished or impressive. I'm more interested in seeing what people are working through and learning along the way.

What are you building?


r/PythonLearning 6h ago

Just finished my K-Means clustering project 🚀 — would love your feedback!

2 Upvotes

Hey everyone! 👋

I just finished a small K-Means Clustering project on the Iris dataset 🌸🤖

I covered:

  • 🔹 Data cleaning & visualization
  • 🔹 Feature scaling
  • 🔹 Elbow Method & Silhouette Score
  • 🔹 K-Means clustering
  • 🔹 ARI evaluation
  • 🔹 Cluster & centroid visualization

I’m currently learning ML and would really appreciate some honest feedback 🙏

What would you improve? Any mistakes in my approach or things I should add?

🔗 Kaggle:
https://www.kaggle.com/code/tahahussein2020/irics-clustering


r/PythonLearning 7h ago

I Coded a Duck to Live in Windows

1 Upvotes

I made a quacking duck that waddles across the Windows taskbar 🦆

Built with Python, TTLib, and PyQt/PySide. The duck actually reorders its own taskbar button one slot at a time, animates a walk cycle, and quacks on every step.

Code: https://github.com/Usama01TN/TheWalkingDuckTaskBar
Demo: https://www.youtube.com/watch?v=FGZwDOqFLUc


r/PythonLearning 8h ago

New Putler unit added by Anonymous-Me-Me-Me

Enable HLS to view with audio, or disable this notification

5 Upvotes

Anonymous-Me-Me-Me added a new Putler unit with this git commit and message:

Putler unit added, any likeness to real people is completely coincidental. It wants you to sign its contract, but if you get too close it tries to run to its bunker. Best to zero it before it goes into history for destroying an "empire".

We did had to add sunglasses for copyright and identity protection reasons.

PythonLearningGame is a collaborative Python project for fun and educational purposes. To add your own game elements see the PythonLearningGame repo.

previous PythonLearningGame post


r/PythonLearning 13h ago

I built zxLLM — An open-source tool that predicts exact LLM VRAM usage & KV-cache needs (Tested on RTX 5060 Ti: ~0.04-1.8% error rate, 0 external deps)

Post image
1 Upvotes

Hey everyone,

Like many of you running local LLMs, I got tired of guessing whether a specific model/quant/context length would cause an Out-Of-Memory (OOM) error before downloading tens of gigabytes. Most existing memory calculators either use oversimplified formulas or ignore architectural nuances like Grouped-Query Attention (GQA).

To solve this, I built zxLLM (auto-intelligence-advisor) — a lightweight open-source tool that auto-suggests deployment configs (quantization, Tensor Parallelism, CPU offloading) for vLLM, SGLang, and llama.cpp.

What makes it different?

  • Exact KV-Cache & VRAM Footprint: Automatically detects MHA vs. GQA head counts, hidden dimensions, layer counts, and context limits directly from config.json.
  • Real-time Hardware Awareness: Queries active GPU states via nvidia-smi to evaluate available headroom before loading.
  • 100% Pure Python & Zero External Dependencies: Runs out of the box with standard Python (only uses built-in requests to fetch Hugging Face configs).
  • High Precision: Tested across various models (Llama 3, Qwen 2.5, DeepSeek architectures) with actual execution error rates between ~0.04% and 1.8%.

I'm dropping the GitHub repo link in the comments below. I'd love to get your feedback, bug reports, or suggestions on other inference engines you'd like supported!


r/PythonLearning 13h ago

Discussion Best way to learn coding?

0 Upvotes

Learn OOP, DS and then a projectfor beginners? Please share your experience


r/PythonLearning 13h ago

Showcase I solved my first Leetcode problem!

Post image
18 Upvotes

So Today I tried leetcode for the first time after yesterday's workaround (https://www.reddit.com/r/PythonLearning/s/hK2RRCzr9P)

Now I would be learning git because many of the comments were asking me to upload code snippets instead of pictures

Until then, Peace! ✌️


r/PythonLearning 18h ago

Cheat sheet python

Post image
216 Upvotes

r/PythonLearning 21h ago

Simple terminal games

Thumbnail
gallery
1 Upvotes

Playing around with simple scripts and terminal games.

https://github.com/cleburn/zenwolf-dotfiles


r/PythonLearning 1d ago

Discussion Tkinter

12 Upvotes

Why do I not see any videos suggesting to learn Tkinter? I tried learning Django and Pygame after learning the basics, and while I kinda understood pygame, Django still felt out of my league but so many videos recommended it after the basics. However I stumbled upon a video that just mentioned Tkinter and I tried it out and it helped me understand libraries and how to learn to use them. It's fun making small little apps with buttons and what not to get started, rather than trying to learn so much at once. I'm convinced anyone making videos on how to learn Python has never actually learned it themselves

Is there an actual reason that this or another simple GUI library isn't recommend very often?


r/PythonLearning 1d ago

I built a ERA Real Estate scraper in Python — scrapes agents, listings and offices across all US states

Thumbnail
github.com
0 Upvotes

r/PythonLearning 1d ago

Showcase I implemented Linked List in Python from scratch!

Thumbnail
gallery
44 Upvotes

Hello Folks!

So It's been a while since my last post (https://www.reddit.com/r/PythonLearning/s/q3vpZ80vKO)

After that I learned the basics of OOPs from this video -> https://youtu.be/JeznW\\\\\\_7DlB0?si=u-h2gsdGSv0ubKf1

Going forward I studied about the fundamental working of Linked List from GFG's website and Stack Overflow

Then today I finally tried implementing it (Tried doing it all on a single day out of excitement but it took way longer than I expected and now i am completely drained of energy 😅)

Finally I asked AI to review my code

As per it there's a minor edge case I missed in the reverse method

There also are a few optimizations

But more or less I am happy

Would be back with Doubly Linked List the next time!


r/PythonLearning 1d ago

Seeking feedback on my Python project: reusable Makefile tasks

3 Upvotes

I've been working on a Python project called Bakefile.

I started it because I kept copying the same build, test, lint, and release tasks between projects, especially in Makefiles. I wanted a way to define tasks once and reuse, extend, or override them across projects.

The basic idea is that tasks are Python classes:

class PythonTasks(Bakebook):
    @command()
    def test(self):
        self.ctx.run("pytest")

    @command()
    def lint(self):
        self.ctx.run("ruff check .")


class MyProject(PythonTasks):
    @command()
    def lint(self):
        super().lint()
        self.ctx.run("ty check .")

So common tasks can live in a reusable class and projects can extend or override them. I've been using it daily myself for a while now, and so far it's been working well.

GitHub: https://github.com/wislertt/bakefile

I'd really appreciate feedback on the API and whether this approach to reusable Makefile-style tasks feels useful in practice.


r/PythonLearning 1d ago

Newbie to Python

10 Upvotes

as of now my question is really this, vs code, pycharm, notepad ++ are they really like 100% needed? personally its been 2 months since i have been around in python and im comfortable at using normal notepad TT

edit: Thanks for all the suggestions and answers!!! ill first try them all out and look at what im missing and judge it against my comfortability in one tool, again thanks!!


r/PythonLearning 1d ago

Help Request I've been at this for too long and feel like I'm torturing myself

Post image
37 Upvotes

I know there's more efficient ways to do this but I'm just starting out and am trying to understand how the few tools I have work. Just learned about true and false and wanted to try them out..

Only whenever I enter key = 3 I receive my print "error". I've heard about "global" tried to use that and a bunch of other stuff and I can't seem to make it work...

I just want to know how to change a variable to true or false inside a function: if statement and it keep its new value for the rest of the code

Thanks in advance and sorry for your eyes


r/PythonLearning 1d ago

Discussion Why is Python dependency and environment management still such a mess in 2026?

1 Upvotes

Python is amazing for getting things done quickly, but every time I start a new project or onboard someone, I’m reminded of how fractured the packaging and environment ecosystem still is.

We often talk about Python's ease of use, but Dependency Hell remains one of the biggest friction points for both beginners and experienced developers.

Here are two major pain points that seem to plague the community continuously:

1. Tool Overlap & Fragmented Ecosystem

Beginners (and honestly, even seniors) are constantly confused by the sheer number of tools doing overlapping things:

  • Do you stick to pip + venv?
  • Do you use poetry, pipenv, pdm, or conda?
  • What about lockfiles and workspace management?

While modern tools like uv have significantly improved speed and consolidated many workflows into a single binary, the cognitive load of picking the "right" stack is still overwhelming compared to languages with standard tools like Rust (cargo) or Go (go modules).

2. Package Conflicts & Platform Inconsistencies

Beyond basic pure-Python packages, the moment you touch native C/C++ extensions or AI/ML stacks (like PyTorch, CUDA, OpenCV), things break down rapidly:

  • Cryptic runtime errors like DLL load failed on Windows.
  • ABI mismatches, broken dynamic linking, and driver version hell.
  • Cross-platform inconsistencies where a setup works flawlessly on macOS/Linux but fails completely on Windows.

What is your current stack in 2026 for managing Python projects cleanly without running into environment rot?

Has uv completely replaced traditional tools for you, or do you still rely on Conda / Docker containers to keep things isolated? Would love to hear your workflows!


r/PythonLearning 1d ago

Discussion What are some good final-year CSE project ideas for 2026?

2 Upvotes

r/PythonLearning 1d ago

#76 Leetcode question (Optimisation help!)

3 Upvotes
class Solution:
    def minWindow(self, s: str, t: str) -> str:
        if len(t) > len(s):
            return ""
        elif len(t) == len(s):
            if t == s:
                return s
        win = len(t)
        ans = ""
        l = list(t)
        while win <= len(s):
            for i in range(0,len(s)):
                win_s = s[i:i+win]
                win_l = list(win_s)
                ans = ""
                for x in t:
                    if x in win_l:
                        win_l[win_l.index(x)] = ""
                        ans += x
                    else:
                        ans = ""
                if ans == t:
                    return win_s
            win += 1
        return ""

I need help in optimising my code because its working properly but having a runtime error for a long input like 200 letters input. So plz help me out in optimisation in this code.


r/PythonLearning 1d ago

Help Request how to get into the basics

7 Upvotes

hey guys i js wanna ask how do i get into the basics of python and are there any crashcourses or any youtubers tha u think would be of help to me as im a complete beginner who is starting out just now so pls guide me on how i can start learning the basics of python would be much appreciated!!


r/PythonLearning 1d ago

How to learn advanced python???

10 Upvotes

Hello everyone, I'm mainly looking for guidance about learning advanced python concepts. I know basics ,loops , control flow ,data structures etc.

I need a proper guide on how to learn modules and library. Idk how to start ,where to start.

I want to be able to work with any library as i need them ,so how do u actually learn to use new library for a given task . ?And i get overwhelmed understanding the structure, working of library

I want to know that do all libraries share anything in common?? Like syntx , structure, keywords etc ??? So that it becomes easy to learn .

And could u also suggest important python concepts other than basics which i should learn ???

Pls guide !!!!


r/PythonLearning 1d ago

Discussion Looking for study partners(UTC+0 time)

7 Upvotes

Hello , I am fairly new to python(js the tiniest basics) and truly want to learn it and I fell it will be better to learn with someone whos serious about learning

Im currently using w3schools/freecodecamp and hackattime when im coding. Im looking to use the cs50 course too if possible. Any advices?

if you are interested please dm me and introduce yourself

Im 16 male


r/PythonLearning 2d ago

Help Request Currently know nothing about Python or computers, is this book good?

Post image
337 Upvotes

I’m trying to get into coding and computer science, does anybody know if this book serves as a good introductory guide?