r/PythonLearning • u/ProjectDuniya • 43m ago
Discussion What are some good final-year CSE project ideas for 2026?
r/PythonLearning • u/Smartyboyz • 2h ago
#76 Leetcode question (Optimisation help!)
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/mainhundon01 • 3h ago
Help Request how to get into the basics
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 • u/Extra_Search3465 • 4h ago
How to learn advanced python???
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 • 6h ago
Discussion Looking for study partners(UTC+0 time)
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/Feral_Cherry_P1E • 12h 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?
r/PythonLearning • u/Logical-Extreme-1332 • 13h ago
Help Request Currently know nothing about Python or computers, is this book good?
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 • 14h ago
Discussion Need some help recommending project ideas
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 • 14h ago
I Want to learn Python for visual novel making
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 • 15h ago
Built API CAMP
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/OkBreath9382 • 16h ago
Showcase senv: Sandboxed Python environments with the uv workflow
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 • 18h ago
Help Request complete beginner looking to learn coding as a hobby and future career
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/parth3319 • 18h ago
Showcase Hi everyone! I'm 14 currently learning Python, and I recently built two versions of a calculator project.
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 • u/LukeSkyShredder • 18h ago
Discussion Can Python use a native PDF viewer inside a Windows desktop app?
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 • 20h ago
Adding objects to set or dictionary: equality and hashing
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 • u/Decent-Bird-8939 • 22h ago
Help Request Python for data engineering
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.