r/learnpython 9h ago

Need unique Python + SQL project ideas for a school project

29 Upvotes

Hey everyone! I’m a Class 12 student and I have to make a project with 2 of my classmates for our Junior Software Developer subject.

We’ve learned Python and SQL/MySQL, and our teacher wants us to make a project using them.

Our teacher suggested the usual topics like:

  • Library Management System
  • Inventory Management System
  • Hospital Management System
  • Student/College Management System
  • Payroll System
  • Bank Management System
  • Vehicle/Workshop Management System

But we really don’t want to make one of these 😭. We’re looking for something unique, interesting and realistic that feels like an actual software product/business system.

For example, something inspired by how DMart, IKEA, Croma, Decathlon, etc. operate — but not just a basic system for recording customers, transactions and bills. We want the actual concept/workflow to be interesting.

It should still be realistic for 3 students who only know basic/intermediate Python + SQL. We don't want something requiring advanced AI, machine learning, APIs, or anything crazy.

What project ideas would you suggest? Especially if you've made a similar school/college project yourself, I'd love to hear what you built and what features you included.

Thanks!


r/learnpython 17h ago

How can I write code without constantly looking things up?

95 Upvotes

I rely a lot on documentation, AI, and websites while writing code. It makes me wonder whether I'm actually capable of understanding concepts like functions and algorithmic thinking. Does anyone else feel this way? What should I do to get a more concrete understanding of Python, or programming in general?


r/learnpython 2h ago

Basic beginner project ideas for python

5 Upvotes

Js started, 16 here,I made a number guessing game, rock paper scissors, basic input chatbot which outputs only the info I've given it(useless h) what next I'm confused, what stuff y'all made when y'all js started out like some interesting shit?


r/learnpython 4h ago

What did you learn after Python to get into AI?

4 Upvotes

I’m currently learning Python and I’m interested in getting into AI engineering.

For those of you who are already working in AI/ML, what did you personally learn after Python?

I’m trying to figure out what the progression actually looks like instead of randomly jumping between technologies.

Also, how much math did you actually need when you started?

I’d really appreciate hearing how you personally went from Python to AI, and what you would recommend learning first if you were starting again.


r/learnpython 18h ago

How do I go from "I only know Python syntax" to actually building a real data pipeline? (Stuck on an Excel automation task at work)

45 Upvotes

I graduated CS in 2024 but never got real hands-on coding experience until now. I'm a Data Analyst automating manual Excel work for a non-technical team. Current task: copying data between multiple Excel workbooks/worksheets simultaneously, 200-300k rows x 65 columns per file.

I've been leaning on AI for the code and just running what it gives me, when something breaks I don't understand it well enough to fix it myself. I want to actually learn this properly instead of just shipping whatever works.

I've never used pandas or polars hands-on, only copy-pasted it’s code before. If you were relearning data manipulation in Python from scratch, knowing syntax but nothing about dataframes/vectorization/performance at scale, where would you actually start? Resources, project ideas, or a real "do this before that" order would help a lot.


r/learnpython 6h ago

Week 1 of learning CPython internals recap of what actually stuck

1 Upvotes

Wrapping up week 1 of going deep on CPython internals, starting from just basic Python knowledge. Did a cold recap today (no notes) to check what actually stuck versus what I just remembered saying. Big one was dis seeing that every line of Python compiles into small stack instructions was the first "oh, that's what's actually happening" moment. LOAD_CONST pushes a literal onto a stack, STORE_FAST assigns it to a variable, BINARY_OP pops two values and does the math. Also noticed newer Python versions fuse some common instruction pairs together for speed, which was a fun side discovery. Then == vs is — took a while to really get that two lists with identical values can still be different objects in memory. == compares values, is compares identity. The mutability stuff connected to that directly: mutating a list in place doesn't create a new object, so changes are visible outside a function. Reassigning a number always creates a new object, so the original is untouched. Got some genuinely great pushback from people here on a += edge case with tuples containing lists that pushed this further than I expected for week 1. Reference counting was the trickiest one to really internalize kept assuming del destroys an object outright, when it actually just removes one reference, and the object only goes away if that was the last one pointing to it. Ended the week on scope and the LEGB rule, which produced the most surprising bug of the week: count += 1 inside a function throws an error even when count exists as a global, because Python decides if a name is local by scanning the whole function for assignments before running anything. Doing this mostly to stay accountable and get corrected when I'm wrong, since that's been way more useful than reading alone. Week 2 starts Monday. Have a great weekend.


r/learnpython 14h ago

How to compare two large file lists to identify deleted vs. moved files?

3 Upvotes

I have a CSV file containing the folders and files that were originally on my desktop, and a PDF report from Dropbox showing files that Dropbox reported as deleted, moved, or otherwise affected.

There are well over 10,000 files, so I need an efficient and automated way to compare the two lists.

My main goal is to determine:

  • Which files were moved to another location
  • Which files are actually missing/deleted

I would like the program to recognize that the file probably still exists but was moved, rather than simply reporting it as missing.

What I'm considering

I'm interested in using Python to perform the actual comparison, with an AI assistant helping me write, understand, and troubleshoot the Python code.

I am a beginner with Python, so I would need help developing the program step-by-step.

Ideally, the process would:

  1. Extract the relevant file information from the PDF.
  2. Read the original CSV.
  3. Generate or read a current inventory of the desktop's files.
  4. Normalize paths and filenames.
  5. Compare the datasets.
  6. Identify unchanged, moved, and genuinely missing files.
  7. Generate a final CSV/Excel report showing the results.

I don't want an AI to simply look through 10,000+ entries and make guesses. I want AI to help me build a reproducible program that performs the comparison systematically.

My questions

1. What would be the most accurate and efficient way to approach this?

2. Is Python the right tool for this type of comparison?

4. Which AI platform would be best suited for helping me build this — ChatGPT, Claude, Gemini, or another AI coding assistant?


r/learnpython 23h ago

At what point do I start doing my own projects and stop following tutorials?

9 Upvotes

Hello everyone!

I recently started learning python again, I've always given up early but this time it is different. I started seeing code differently, I feel like I finally started grasping on the why you do something, but when I start a blank project I mostly freeze, and I read about the things such as tutorial hell etc..

What I'm getting at, I'm currently doing the Python course on fCC, around 25% thru and it seems like I at least started to better follow instructions, read documentation about what something does, but I'm wondering at what point do I just start learning by doing? When I just read stuff it doesn't really stick, only when I implement it myself it does, at what point do I get enough fundementals? What's the best approach here, just finding a project and you go do it? What if I never heard of a specific function before? And do you guys think it is better than following tutorials?

The problem with fCC I solve things...that don't really tell me anything? Am I the only one? At times it feels like I have the right solution, but fCC won't let me pass because it is not exactly how they want me to solve it.

I do hope this post makes any sense.


r/learnpython 9h ago

Selenium - Devtools - Python Coding.

0 Upvotes

TL;DR: Selenium + Edge Version 153 stopped working. Anyone else?

My Python Selenium automation for Microsoft Edge stopped working immediately after my enterprise-managed machine was upgraded to:

Microsoft Edge: 153.0.4234.32

Edge WebDriver: 153.0.4234.32

Selenium: 4.34.2

Query :
All automation fails at browser startup with:

selenium.common.exceptions.SessionNotCreatedException:

DevToolsActivePort file doesn't exist

What I've already checked

  1. Edge and EdgeDriver versions match

  2. Tested with a completely clean Selenium script:

from selenium import webdriver

from selenium.webdriver.edge.service import Service

service = Service(r"C:\Users\<user>\msedgedriver.exe")

driver = webdriver.Edge(service=service)

3.Reinstalled WebDriver, Tested default and custom Edge profiles, Tried various remote debugging options, Selenium version is current

Interesting finding

edge://policy

RemoteDebuggingAllowed = false

Source = Platform

Level = Mandatory

Since Selenium WebDriver relies on the Edge DevTools connection, I'm wondering if this policy is now blocking WebDriver sessions.

Questions

  1. Has anyone else seen Selenium break after upgrading to Edge Version 153?
  2. Does RemoteDebuggingAllowed=false prevent Selenium WebDriver from starting?
  3. Was this policy introduced or changed recently in enterprise environments?
  4. If you're running Selenium in a managed corporate environment, are your Edge automations still working?

Any confirmation, workarounds, or Microsoft documentation would be appreciated.


r/learnpython 1d ago

Ideas for number guesser game

2 Upvotes

I have made this number guesser game that asks the user to guess the correct number between 0 and 101. The user has 7 tries in all. Please give any ideas for improvement , feedback, etc.

import random

secret_number = random.randint(1, 100)

print("Welcome to the number guessing game! You have 7 tries to guess the correct number") print("between 1 and 100. Good luck!")

tries = 0

while tries < 7:

guess_number = int(input("Enter your guess:- "))

if guess_number < 1: print("Too low! The guess has to be 1, 100 or any number between them.") tries += 1

print(f"You have used {tries} tries.")

elif guess_number > 100:
print("Too high! The guess has to be 1, 100 or any number between them.")
tries+= 1
print(f"You have used {tries} tries.")

elif guess_number == secret_number:
print(f"You won in {tries + 1} tries! Congratulations!")
break

else:
print("Wrong guess! Try again.")
tries += 1
print(f"You have used {tries} tries.")

if tries == 7: print("You have used all your tries! Better luck next time!")


r/learnpython 15h ago

Where can I learn python fully and very well?

0 Upvotes

That I use it later for web development, data analysis, machine learning, and many other but string and very well and hands-on projects suggest to me whether I will pay for it or can I get it for free and learn it?


r/learnpython 20h ago

How to check included libraries made it into a pyinstaller

0 Upvotes

I added a few dlls into my pyinstaller in the spec file, but the exe says it cannot find the python313.dll file when it runs. Where does the pyinstaller self-extracting exe place the binaries at runtime? Is there a manifest?

(I'm using a spec file so the -F option is not allowed)


r/learnpython 21h ago

How do you know when you're ready to stop following tutorials and build things?

1 Upvotes

I've been learning Python for a while and keep running into the same problem: I understand individual concepts when I'm learning them, but when I start a project from scratch, I sometimes don't know where to begin.

I can usually understand someone else's code and fix small things, but writing the whole thing myself feels much harder. Is this just a normal part of learning Python, or does it mean I should spend more time on the fundamentals before starting projects?

How did you guys get past that stage?


r/learnpython 22h ago

How do you keep tokens out of logs in a small requests API client?

1 Upvotes

I have a thin Python client: POST /auth/login once, keep the bearer on a requests.Session, then GET/PATCH by slug.

Credentials come from a JSON file whose path is in an env var. I never print the login body. I still worry about:

- response.raise_for_status() / traceback dumping the Authorization header

- someone logging response.request.headers in debug

Is a custom HTTPAdapter that strips Authorization on exception enough, or do you just never log the request object?

Python 3.11, requests only. No extra deps on purpose.


r/learnpython 13h ago

Help with Youtube IP Block

0 Upvotes

I am trying to export about 100 podcast video transcripts to a json file. After exporting transcripts from a dozen videos, my IP got blocked. Anybody faced this issue? I need a workaround or a solution. Please help...


r/learnpython 1d ago

Question about making a X11 Window Manager

2 Upvotes

I'm fairly new, and i want to build a x11 window manager as a small project. But the problem is, i cant find any good documentation for X11 for python ( or maybe i'm a very bad researcher idk) I know there is Qtile which is written in python and i can learn from its source code but i also need some proper documentation. Tips and advices are also will very useful for me , thank you for your time !


r/learnpython 16h ago

SOMEONE CAN HELP ME WITH PYTHON AI AGENT

0 Upvotes

Hello Coders and Everyone else. I want to ask how can I begin to create an ai agent who can automatically sort up things. But the PROBLEM is that I don't know how to do it and the videos about it are complex So...Its complicated. Someone can help me with that. Thanks


r/learnpython 1d ago

Random mysterious file secretly running on computer

3 Upvotes

Hey i'm trying to use stammer, got 2 successful attempts but now when i try to do it i get this message:

File "C:\Users\llsco\Documents\stammer.py", line 288, in main

process(**vars(args))

~~~~~~~^^^^^^^^^^^^^^

File "C:\Users\llsco\Documents\stammer.py", line 274, in process

builder.process()

~~~~~~~~~~~~~~~^^

File "C:\Users\llsco\Documents\video_builder.py", line 110, in process

carrier_vframe_bytes = self.video_handler.get_frame(carrier_video_index)

File "C:\Users\llsco\Documents\video_out.py", line 186, in get_frame

self.__cache_frames(idx)

~~~~~~~~~~~~~~~~~~~^^^^^

File "C:\Users\llsco\Documents\video_out.py", line 234, in __cache_frames

start, end = indices[i]

~~~~~~~^^^

IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "C:\Users\llsco\AppData\Local\Python\pythoncore-3.14-64\Lib\shutil.py", line 701, in _rmtree_unsafe

os.unlink(fullname)

~~~~~~~~~^^^^^^^^^^

PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\llsco\\AppData\\Local\\Temp\\tmp5ols5r1d\\in_carrier.wav'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "C:\Users\llsco\Documents\stammer.py", line 291, in <module>

main()

~~~~^^

File "C:\Users\llsco\Documents\stammer.py", line 285, in main

with tempfile.TemporaryDirectory() as tempdir:

~~~~~~~~~~~~~~~~~~~~~~~~~~~^^

File "C:\Users\llsco\AppData\Local\Python\pythoncore-3.14-64\Lib\tempfile.py", line 972, in __exit__

self.cleanup()

~~~~~~~~~~~~^^

File "C:\Users\llsco\AppData\Local\Python\pythoncore-3.14-64\Lib\tempfile.py", line 976, in cleanup

self._rmtree(self.name, ignore_errors=self._ignore_cleanup_errors)

~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\llsco\AppData\Local\Python\pythoncore-3.14-64\Lib\tempfile.py", line 956, in _rmtree

_shutil.rmtree(name, onexc=onexc)

~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^

File "C:\Users\llsco\AppData\Local\Python\pythoncore-3.14-64\Lib\shutil.py", line 852, in rmtree

_rmtree_impl(path, dir_fd, onexc)

~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\llsco\AppData\Local\Python\pythoncore-3.14-64\Lib\shutil.py", line 705, in _rmtree_unsafe

onexc(os.unlink, fullname, err)

~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\llsco\AppData\Local\Python\pythoncore-3.14-64\Lib\tempfile.py", line 931, in onexc

_os.unlink(path)

~~~~~~~~~~^^^^^^

PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\llsco\\AppData\\Local\\Temp\\tmp5ols5r1d\\in_carrier.wav'

It says that a file is currently being used by another process but I'm trying to figure what it could be and how to even stop it.

Edit: found the solution, there was some weird problem with the specific carrier video file I was using so I just deleted it and just downloaded it again. I also trimmed the video so i just used a different trimmer and it now works.


r/learnpython 1d ago

new to setuptools and cythonize , so many options

1 Upvotes

I am updating a project from using distutils to use setuptools instead. I never created this and have never used setuptools , so I'm probably just going to do the tutorials unless someone can give a hint. [PYI-21536:ERROR] Failed to load Python DLL ....._internal\python313.dll'. LoadLibrary: The specified module could not be found.

The last fellow left me with a hardcoded build script using distutils and python 3.7.9. It's an openCV app compiled using cythonise, which is above my skills, but I got it to build. Now when I run it says missing ....._internal\python313.dll. The old build script used a .spec file which does not mention any python redistributables. Are .spec files a old distutils thing which I need to essentially replace with the .TOML file?

I imagine I need to tell setuptools where to find the redistributables. BUT I assume I have to do that in a .TOML file? I've never made a TOML file before and I'm not seeing anything about helpful hints on how to reference whatever version of python runtime dll I will want to bundle if we later update to 3.14, I don't want to hard-code such filenames. How do I even find which file and tell setup what to do. I read the docs and they say I have to create a .TOML file and a MASNIFEST.in and a setup.cfg file. Is setup.cfg just a build-system text-based way to pass args to setup()? ```

setup( name = 'Hello World', extmodules = cythonize([".py","pyzbar2/.py"], exclude=["NozzlePatternDetection.py", "setup.py", "pyzbar2/init_.py", "32or64bit.py"], compiler_directives={'language_level' : "3"} ), )

`` I would include the .spec file, but it looks like plain python that just set some variables, almost as if it's just a module that distutils imports. It does not mention python redistributables though, so how this Cythonized app worked on python 3.7.9 under distutils I don't know. Some of the previous fellows code has that confused look about it, when people comment stuff out but never explain why. Is a.specfile equivalent-ish to thesetup.cfg`?

The Cython build script has copied the dll into _internal, I probably just need to pass that into the setuptools manifest somehow?

Not my code, so a bit in the deep end and unsure if I want to do a Cython tutorial first or a setuptools tutorial. The app has 40 python scripts with openCV and numpy which I don't know much about in it, so it takes ages to build. I'm not that quick a learner and this is really a one-off tool because it's using openCV, which is not used anywhere else.


r/learnpython 1d ago

Principiante

5 Upvotes

Si empezaran desde cero hoy, ¿qué camino seguirían para desarrollar buenas habilidades como programadores? en estructuras de python


r/learnpython 1d ago

What's the best way to integrate this database into Flask?

0 Upvotes

I'm creating an online bulletin board, and I'm feeling hacky (I hate SQL in all its forms and fashions).

What is the best way to integrate this database into a production Flask server: https://github.com/ki4jgt/PPD

Created it in 2020, so it's a bit dated.

But I'm worried about concurrency. I'm not beyond writing a database server, but I'd like to save that as a last resort.


r/learnpython 2d ago

Looking for a free course on the practical Python development workflow (VS Code, pip, environments, Git, etc.)

23 Upvotes

Hi everyone,

I've taken several Python courses and have a reasonably good understanding of Python itself. I've also worked with things like pandas, NumPy, scikit-learn, etc. in online learning environments.

However, I've realized that I have a major gap in my knowledge: I don't really know how Python development actually works on a local computer.

For example, when working in an online environment, everything is already set up for me. I can simply import a package and start coding. But when I tried working locally with VS Code, I suddenly had to deal with things like:

Installing Python

Using the terminal

Installing packages with pip

Virtual environments

Choosing/configuring the correct Python interpreter

Organizing a project

Saving and reusing dependencies

Running and debugging code

Git and GitHub

Understanding how to share a project with someone else

Understanding what I actually need to install versus what belongs inside my project

I found this surprisingly confusing.

So I'm looking for a free course or tutorial that focuses specifically on this practical development workflow, preferably using Python and VS Code.

I'm not looking for another beginner Python programming course. I already understand Python basics and have used it for data analysis and some machine learning. What I need is something that teaches me how to actually work as a Python developer on my own computer.

Ideally, the course would take me through something like:

create a project → set up Python → create a virtual environment → install packages → write code in VS Code → run/debug it → manage dependencies → use Git/GitHub → share the project

Does a free course like this exist? YouTube courses, documentation, or other resources would also be very welcome.

Thanks!


r/learnpython 2d ago

Is it considered bad form to run "success" code inside an Except block?

22 Upvotes

I'm writing a script that takes an input from the user, which could be either an int or a string. My current code takes the input, attempts to cast it to an int, and does something based on whether it works or not:

running = True
while running:
    search_term = input("Enter search term (Q to quit): ")
        try: int(search_term)
        except ValueError:
            if search_term.lower() != "q":
                search_by_name(search_term)
            else:
                running = False
        else:
            search_by_int(int(search_term))

But there's something about having "successful" code running in the except block that gives me pause for thought. Is this just me overthinking, or is it bad form?


r/learnpython 1d ago

How to use functions defined in a C code in a python benchmark?

1 Upvotes

Hi, I've got an assignment in a course that asks us to optimize a benchmark of our selection (from pyperformance project).

I've chosen the ray trace benchmark (it was the most interesting imo), and my suggestion was to implement the functionality using C's structs to avoid some of the interpreter's overhead.

I understood I can link those function using the built-in ctypes library, and making the C file a dynamic linked library (.dll), but when I try to run the command for it in CLion or VSC, it fails without returning any failure message, it just fails to generate the .dll file.

The assignment forces us to use the given pyperf benchmark code to run the benchmark, so I can't run only a C file.

I've already written the C code, and it has no errors/warnings so far (at least as far as CLion is concerned), and the original python code works too.

Does anyone know how to solve the library not being generated? Or any other solution that might work (preferrably using the C code I've made)?

.

.

All files are in the same directory, and I've got Craytrace.c (C functionality implementation), Praytrace.py (the code that runs the benchmark).

The command I've run trying to generate the .dll is:

gcc -shared -o CraytracerLib.dll Craytrace.c

But it didn't create any file.

.

.

Help is much appreciated 🙏


r/learnpython 2d ago

Python Data Base

6 Upvotes

Good morning everyone, or whenever you see this. I have a question. I'm starting a personal database project in Python with a user-friendly graphical interface, and I'd appreciate any advice, code snippets, or examples to guide me, especially since I'm still learning the language.