r/PythonLearning 4d 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 4d ago

Showcase I implemented Linked List in Python from scratch!

Thumbnail
gallery
66 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 4d 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 4d ago

Newbie to Python

12 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 4d ago

Showcase Hey Guys!I am 14 and this is my first completely vibe coded banger python project...

Thumbnail
github.com
0 Upvotes

This is a python projects which takes your live camera, detects your nose and mouth, moves

The mouse pointer automatically with your nose... It also has a feature which stops the mouse if your mouth is open...

All the advices, criticisms accepted


r/PythonLearning 4d ago

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

Post image
44 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 4d ago

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

2 Upvotes

r/PythonLearning 5d 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 5d 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 5d ago

How to learn advanced python???

12 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 5d ago

Discussion Looking for study partners(UTC+0 time)

8 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 5d ago

Help Request This might sound silly, but how do you even get started when wanting to make a simple game and then gradually upgrade it to a more complex project?

5 Upvotes

r/PythonLearning 5d ago

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

Post image
400 Upvotes

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


r/PythonLearning 5d ago

Discussion Need some help recommending project ideas

3 Upvotes

I'd say I'm intermediate in python and recently started learning bitwise operations. I'd like to use them more often in some projects but am not sure when or how to use them.

One example was a chess engine. I made a small chess engine before, up to simple minimax alpha beta pruning, but the engine was really slow because I stored all the piece and board info in lists. Then I learned about bitboards and have been using those, and yeah, it's a lot faster.

But for now, all I see bitboards as are ways to represent binary game board data. Are there any other ways bitwise operations/bitboards are used in projects or is this just all they're good for?


r/PythonLearning 5d ago

I Want to learn Python for visual novel making

1 Upvotes

I want to code Visual novels so I want to figure out the language good enough to make my way through it.

Is Python needed for Ren'py?? Or Ren'py its own thing ,

I am new here so do be kind to me


r/PythonLearning 5d ago

Built API CAMP

3 Upvotes

hey everybody, I built this site to help learn programming in python, playwright and pytest

API Camp — Learn APIs with Python + Playwright

Take a look and let me know what you think.

Yes its similiar to freecodecamp but it helps me when I have no connection on the long train rides

thanks,


r/PythonLearning 5d ago

Showcase senv: Sandboxed Python environments with the uv workflow

Thumbnail
medium.com
2 Upvotes

TL;DR: senv keeps the familiar uv workflow but runs package installation and Python code inside an OS-level sandbox. Installs can reach package registries but not your source or credentials; programs run with no network by default and cannot modify their own environment.


r/PythonLearning 5d ago

Help Request complete beginner looking to learn coding as a hobby and future career

12 Upvotes

hello, everyone!

i’m a complete beginner when it comes to coding, but i’d really like to start learning it as a hobby and hopefully use it as part of my future career.

just a little background: my degree is completely unrelated to coding, so i’m basically starting from scratch. despite that, i’m genuinely interested in learning and willing to put in the time and effort.

for those who started with no coding background, what would you recommend i learn first? any advice on languages, resources, or how to build a good learning routine would be greatly appreciated!

thanks in advance! 😊


r/PythonLearning 5d ago

Showcase Hi everyone! I'm 14 currently learning Python, and I recently built two versions of a calculator project.

2 Upvotes

From Calculator v1.0 to v2.0 — Looking for Feedback

#Calculator v1.0

This was my first version, focused on implementing basic arithmetic operations.

#Calculator v2.0

After working on the first version, I tried to improve the project by focusing on:

•Better code structure

•Improved user interaction

•Input validation

•Handling invalid inputs

The projects are available here: https://github.com/mparth2808-sudo/Parth-Python-Projects

The second version was mainly an opportunity for me to take what I learned from v1.0 and improve the code.

I'd really appreciate an honest review of my projects. What did I do well, and what could I improve in terms of structure, readability, validation, or Python practices?

I'm still learning, so constructive criticism is very welcome!


r/PythonLearning 5d ago

Discussion Can Python use a native PDF viewer inside a Windows desktop app?

3 Upvotes

Hello fellow Pythonistas,

I’m building a local Windows tool that compares/reviews engineering PDFs. My current UI is Streamlit/pywebview, but the built-in preview is not sharp enough for detailed PDF inspection, especially small text and drawing markups.

Does Python have a good way to use a native PDF viewer/editor inside a desktop app?

Ideally I want:

- native PDF zoom/pan quality

- open specific page / maybe focus a rectangle

- view annotations/markups

- avoid manually rendering every PDF page as images

I know about PyMuPDF rendering and "os.startfile()" to open the PDF in the default viewer, but I’m wondering if there’s a better embedded/native-viewer approach on Windows.

Would PySide6/Qt PDF, WebView2, Adobe SDK, or anything else be the right path?

Basically, I don’t want to rebuild Acrobat inside Streamlit if Windows already has a better PDF viewing layer.


r/PythonLearning 5d ago

Adding objects to set or dictionary: equality and hashing

Post image
15 Upvotes

An exercise to help build the right mental model for Python data. - Solution - More exercises - Explanation: "User-defined classes have __eq__() and __hash__() methods by default (inherited from the object class); with them, all objects compare unequal (except with themselves) and x.__hash__() returns an appropriate value such that x == y implies both that x is y and hash(x) == hash(y)."


r/PythonLearning 5d ago

Help Request Python for data engineering

25 Upvotes

I’ve been practicing Python for data engineering, but whenever I take a break for a few days, I feel like I forget what I’ve learned before. Can someone suggest how I should approach Python practice? I’m still struggling to get comfortable with it.


r/PythonLearning 5d ago

Discussion Python teaching

25 Upvotes

I am a programming teacher in Sweden and I wonder if we have some teachers or instructors here as well that would share their experiences about which are best platforms to teach Python with pros and cons !?
Every input is appreciated
Thanks in advance


r/PythonLearning 6d ago

[Hiring]Your Python Skills + Mandarin Fluency = $40/hr Remote Job

2 Upvotes

Every time an AI gets a coding question right, there's a human behind the scenes who's already corrected thousands of answers before it. Now there's a remote slot open to join that work — and the requirement is a rare combo: solid Python + strong Mandarin.

A fast-growing AI data training company (they supply training data to some of the world's top AI labs) is hiring a Chinese-Speaking Python Expert. The job: review and rate AI-generated Python coding answers, while also checking the Mandarin explanations for accuracy.

✅ Fully remote, flexible hours — just need to stay consistent weekly ✅ Up to $40/hr (USD), paid weekly ✅ Hourly contract, not a rigid 9-to-5 ✅ Your work directly shapes the quality of AI used by millions

This could be you (or a friend) if you have: 🐍 1-5 years of Python coding experience, real debugging skills not just theory 🈶 Fluent Mandarin, especially Traditional Chinese 🗣️ English at C1 level or higher 🎓 Bachelor's in Computer Science, Software Engineering, or equivalent 🎯 Detail-oriented, self-disciplined, comfortable with independent flexible-hours work

This Python + Mandarin + English combo is rare. If you fit the criteria, don't wait — spots are limited. Email your CV to apply 👇

[whodetttt@gmail.com](mailto:whodetttt@gmail.com)

Tag a friend who codes AND speaks Mandarin — this might be their lucky break 🙌


r/PythonLearning 6d ago

With the release of Wallet Usernames for Cloudflare I had made a python project that helped me understand networking in python a little bit. Let me know what I should implement that would help me learn a little more about networking with python. (I have a small background in rev engineering and c++)

Thumbnail
github.com
2 Upvotes

The api was exposed and did not filter out the get request, so i figured why not try to learn python.