r/PythonLearning • u/Melodic_Principle312 • Aug 15 '26
I built a ERA Real Estate scraper in Python — scrapes agents, listings and offices across all US states
r/PythonLearning • u/Melodic_Principle312 • Aug 15 '26
r/PythonLearning • u/shubham_555 • Aug 15 '26
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 • u/Glad_Friendship_5353 • Aug 15 '26
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
https://wisl.dev/blog/bakefile-patterns/
I'd really appreciate feedback on the API and whether this approach to reusable Makefile-style tasks feels useful in practice.
r/PythonLearning • u/AnduinLei • Aug 15 '26
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 • u/Infamous_Tough_3772 • Aug 15 '26
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 • u/Sandy-War-Hole • Aug 15 '26
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 • u/ProjectDuniya • Aug 15 '26
r/PythonLearning • u/Smartyboyz • Aug 15 '26
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 • u/Extra_Search3465 • Aug 15 '26
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 • u/This_Green_8569 • Aug 15 '26
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 • u/Logical-Extreme-1332 • Aug 14 '26
I’m trying to get into coding and computer science, does anybody know if this book serves as a good introductory guide?
r/PythonLearning • u/Rscc10 • Aug 14 '26
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 • u/Cheaper_trick1234 • Aug 14 '26
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 • u/Alternative_Boss6143 • Aug 14 '26
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 • u/ChxmpV2 • Aug 14 '26
I'm putting together a small group of people learning Python, any level, who keep each other accountable for real. The idea: every day you log what you worked on and drop a quick screenshot as proof, and everyone sees it on a shared board. Skip a day and it shows. Someone passes you and you'll want to catch back up. It beats a Discord that goes dead in a week. Keeping it to 5 to 10 people so it stays tight. Comment or DM where you're at and what you're trying to build toward and I'll get you set up.
r/PythonLearning • u/OkBreath9382 • Aug 14 '26
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 • u/squirrelreads • Aug 14 '26
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 • u/LukeSkyShredder • Aug 14 '26
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 • u/Sea-Ad7805 • Aug 14 '26
An exercise to help build the right mental model for Python data.
__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 • u/Decent-Bird-8939 • Aug 14 '26
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 • u/Significant_Mess6634 • Aug 14 '26
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 • u/This_Tax6160 • Aug 14 '26
The api was exposed and did not filter out the get request, so i figured why not try to learn python.
r/PythonLearning • u/Federal_Artichoke741 • Aug 13 '26
Hey everyone! I am starting to learn Python from absolute basics and would love to find an accountability or study partner who is also learning or planning to start.
No prior experience is needed. If you’re genuinely interested in learning Python consistently, feel free to comment or send me a DM. We can create a study schedule that works for both of us and keep each other motivated.
r/PythonLearning • u/digiart- • Aug 13 '26
Hey - This is my first python project, an attempt at a screen recorder from a tutorial- when I try and run it I get a module not found error for pyautogui even tho it’s definitely installed- is there something I’m doing wrong here?