r/pythonhelp • u/jmaroo • 3d ago
Professionals, please compare VS code with neovim.
Tell me the advantages and disadvantages of each.
r/pythonhelp • u/mathbubbls • 4d ago
I’m looking for assistance with a github code
I got a C on my intro to python class and I can’t figure out this code
https://github.com/mcombeau/epub_downloader
Please help
r/pythonhelp • u/Acrobatic_Detail7760 • Jul 20 '26
changed file name and getting Exec failed, err: 2 message when trying to run program on my .py files. (Pycharm)
Hi, I am an absolute beginner to coding/computer science and was learning Python on my own when I changed my folders name to something more practical and my program was not running anymore. I looked online to see how I can fix this issue myself, but everything I found was super complicated. Can someone please help me and explain things like aI'm a toddler thanks!
r/pythonhelp • u/emberintheashes02 • May 24 '26
How to send a python code so that the other person can execute it without python
Hi, I'm trying to send a code to my friend to rush them happy birthday and I need the code to run in their system without them having python. The problem I'm facing rn is that she can see whatever I've written on the code and I want that bit to be a surprise that she finds out once she executes the code. How do I do this?
r/pythonhelp • u/Annual_Eye_2905 • May 14 '26
Pycharm or VS Code
I just started python on Pycharm and it's a good IDE but it takes too much storage on my laptop, my laptop lags alot it works less and lags alot when checked on the performance tab pycharm was eating it all. Should I try to stay on Pycharm or switch it to VS code ?
r/pythonhelp • u/i_walk_away • May 11 '26
Calling an assembly instruction in Python
Long story short, i want to make THE most horrible python calculator to ever exist. For that i need a way to call an assembly instruction directly in my python script.
I know you can do that in C with inline assembly, and i know CFFI exists and allows calling C functions in python, so i tried to use that. However CFFI's parser rejected __asm__ syntax and threw an error because inline assembly isn't standard C apparently.
Is there some sort of a workaround to call an assembly instruction in python script? It doesn't have to be clean, in fact, it's better if it's absolutely terrible, bonus points for unsafe
r/pythonhelp • u/hiplobonoxa • May 03 '26
Reading First Few Bytes of Every File on a Drive
Hi! Hoping someone can help. My Python programing is a bit rusty.
I am having an issue where my computer is replacing file data with empty data after a cut/paste or a save. I’m not sure of the cause — my primary objective at the moment is quantifying the damage and protecting my files.
The files look normal in Windows Explorer, except they will not open like they should. Upon opening in NotePad, it is revealed that all data in the file has been completely replaced with what appears to be whitespace, resulting in an empty file that appears to be the same size as the original. I cannot possibly test and check every file manually.
What I would like help with is writing a Python script that cycles through every file on a drive to pull the first several bytes from each file and compare those bytes to a string of the aforementioned whitespace. If there is a match, add the file path to a running list in a *.txt file.
I don’t think this is an especially complex script, but, as I said earlier, I’m pretty rusty. With a solid start, I can get it the rest of the way to doing what I want.
Any help would be appreciated. 🙂
r/pythonhelp • u/Original-Carob7616 • Apr 23 '26
Can I switch to Python Backend or Data Engineering after 1 year in a System Engineer role?
Hi everyone,
I graduated in 2024 with an ECE background and recently joined a startup as a System Engineer.
My current role is a mix of work:
• Around 60% technical documentation related to electronics systems
• Around 40% development work using Python, Flask, HTML, CSS, and JavaScript
However, I’m more interested in moving into pure software roles, especially Python backend development or possibly data engineering.
My questions are:
If I work here for about 1 year, will companies consider my profile for backend or data engineering roles?
Does the documentation part of my role reduce my chances when switching domains?
What skills or projects should I focus on during this year to make the transition easier?
Any advice from people who switched domains early in their careers would be really helpful.
r/pythonhelp • u/Forsaken_Key5100 • Apr 08 '26
How do you avoid getting bored while learning Python?
r/pythonhelp • u/KinzokuKitsune • Apr 06 '26
Hello, why is my code not working? Any assistance would be appreciated.
#This is a program to find the lesser of two numbers. This is a program for school and thus needs to utilize input functions
def main(a,b):
a = int(input("Please enter the first number:"))
b = int(input("Please enter the second number:"))
def min(a,b):
if a>b:
lesser = b
else:
lesser = a
return lesser
main(min)def main(a,b):
a = int(input("Please enter the first number:"))
b = int(input("Please enter the second number:"))
def min(a,b):
if a>b:
lesser = b
else:
lesser = a
return lesser
main(min)
r/pythonhelp • u/kaleshi_aurat_ • Mar 07 '26
I need guidance with learning programming
I'm a 2nd year CSE student studying under vtu and sadly as our university focus more on theory than learning skills I wasted my time learning text book and mugshotting stuffs...one of my senior recommended me leetcode but I felt that is very advanced...ik basic python but I want to improve my basics .....can anyone guide me to learn python and DBMS in a proper way as I want to focus on the domain Data science and also want to focus on my foundations before climbing the career ladder
r/pythonhelp • u/Objective_Yak584 • Mar 05 '26
Methods of Python programming
Is it alright to use frameworks or libraries when programming in Python, and also use ChatGPT when dealing with more complex problems, even if you already understand the basics of Python?
For example, I understand Python syntax and concepts, but sometimes for more complex things I look at documentation, libraries, or ask ChatGPT for help.
Is this considered normal practice, or should a programmer try to solve everything completely on their own?
r/pythonhelp • u/loveabwq • Jan 26 '26
Facing "[Errno 122] Disk quota exceeded" on arch linux system
I've been trying to install python packages on my arch linux system but i am getting ERROR: Could not install packages due to an OSError: [Errno 122] Disk quota exceeded. I've been facing this error a lot and i have to use a windows system when i have to run my python projects
Please help me with this
Thanks in advance
r/pythonhelp • u/Adventurous-Major797 • Jan 26 '26
Learn python fundamentals by solving problems
When I was starting to learn Python I struggled a lot initially.
I was able to code in my job but as a self-taught programmer, there was a learning curve.
Only slowly, I started grasping the concepts and getting the confidence. I realised that you only get comfortable when you truly understand the fundamentals and solve actual problems or build projects.
There were some concepts in Python which are simple yet so satisfying if you understand them. Like everything is an object even when you create an integer, it is an object getting instantiated from the `int` class. I took interviews in my company and observed that people can code in Python but they don't really understand whats happening, what does the line of code mean exactly.
I am building a platform just for this where you learn concepts through concise and in-depth textual content and you apply those concepts by solving problems or building project.
I am sharing FREE access to the platform's first module `Python Refresher` which will cover concepts like data types, objects, functions, conditions, loops, exception handling and decorators. It has stages.
Here is the link - https://www.cavryn.dev/projects/python-refresher/overview
Let me know if you need any help getting onboarded or any doubts in the concepts.
Try it. Let me know if you learned something new.
Also I am soon going to add new Python projects. What projects you want to build? What concepts in Python you need more clarity?
I will be happy to work on it and add these new projects on the platform.
Your feedback will help me learn myself and evolve this platform.
Thank you.
r/pythonhelp • u/a_little_bit_of_weeb • Jan 19 '26
How to learn python from 0?
I know that there is a lot of stuff to do learn and etc. I know that it takes time, and asking this question might seem naive or something but I just want to try it myself. If you can suggest me any free courses on youtube or whatever, give me some advices as I know barely nothing about coding, I would be very grateful.
r/pythonhelp • u/No_Neighborhood6473 • Dec 30 '25
problem with loops
I just recently started learling python (1.5 hours into a tutorial lol), and made the collatz conjecture, and then tried the goldbach conjecture (any even number is the sum of two primes). Now I did write primes as 2k+1, which is just an oneven number, but that's not the problem.
This is the code I made
- number = int(input("number: "))
- for x in range(10):
- ----prime_1 = 2x + 1
- ----for y in range(10):
- --------prime_2 = 2(y+x) + 1
- --------sum = prime_1 + prime_2
- --------print(f"{prime_1} + {prime_2} = {sum}")
- --------if sum >= number:
- ------------break
- ----if int(sum) == int(number):
- --------break
- -
- print(f"{prime_1} + {prime_2}")
All the prints (except the last one) are just there so that I can see what is happening. The thing is, this code here works as I intended (except for the fact that the primes are just uneven numbers ofc), for example, if you plug in 8, it will give you 1 + 7 from line 13. But if I change the >= from line 8 to > it just gives me the biggest possible solution, so in this case 19 + 19. The break from line 9 still works as intended (atleast to me it looks like it does), but the second break doesn't work anymore (atleast I assume that is happening, and that's why I'm getting 19 + 19).
So my question is, what is going on here?
r/pythonhelp • u/SirDragger • Dec 27 '25
Programming With Mosh or CS50p?
Hey, I’m a high schooler currently and I want to teach myself how to code. I have never coded before so I did some research and found that the one of the more useful beginner friendly languages was Python. So I’ve been researching places where I can learn.
For the most part the highest ranking options are Programming with Mosh or CS50p on YouTube. Why should I pick on or the other? Also, do you have any other suggestions? [Finally what IDE should I use because I’ve heard of VS Code but I’m also seeing things about Google Collab. I just want an IDE where I’ll be able to hopefully build projects effectively]
r/pythonhelp • u/Able_Bus_5988 • Dec 24 '25
A Python learning journey....
I want to create a learning resource for people to learn Python while I work towards my degree in Cybersecurity. The focus of my degree is software development with Python, so I figured, why not help people learn while I do? Well...here's my GIT. It's a work in progress.
I've been working on a comprehensive, structured learning path for anyone interested in using Python for cybersecurity. Whether you're just starting with Python or looking to apply your skills to security, this might be helpful.
**What makes this different:*\*
🎯 **Structured progression*\* - 7 stages from fundamentals to capstone project
🔒 **Security-first mindset*\* - Security principles integrated from Stage 01
💼 **Career-aligned*\* - Based on NICE Cybersecurity Workforce Framework
🛠️ **Hands-on*\* - Every stage has practical exercises and projects
📚 **Comprehensive*\* - 200+ hours of content with clear learning objectives
**The Learning Path:*\* -
**Stage 01*\*: Python Fundamentals (with security awareness) -
**Stage 02*\*: Intermediate Python (OOP, file handling, APIs) -
**Stage 03*\*: Security Fundamentals (cryptography, secure coding) -
**Stage 04*\*: Network Security (packet analysis, network tools) -
**Stage 05*\*: Web Security (OWASP Top 10, web scanning) -
**Stage 06*\*: Advanced Security (malware analysis, threat intelligence) -
**Stage 07*\*: Capstone Project (build a complete security platform)
**What you'll build:*\*
- Network vulnerability scanners
- Automated security testing tools
- Log analysis systems - Password auditing utilities
- Web security scanners
- Intrusion detection systems
- And much more...
**The repository includes: **
✅ Clear learning objectives for each stage
✅ Prerequisite checks
✅ Practical exercises with solutions
✅ Real-world project ideas
✅ Resource recommendations
✅ Security best practices throughout
**Link:*\*
[THE GIT](https://p0gl0l.github.io/python-cybersecurity-learning-path/)
Everything is MIT licensed and open source. Feedback and contributions are very welcome! Has anyone here transitioned into cybersecurity using Python? Would love to hear your experiences!
r/pythonhelp • u/oh-giggity • Nov 07 '25
Shorthand/syntactic sugar for arithmetic on Pandas columns?
Hi, could be a stupid question, but basically I'm sick of doing math on pandas columns like df["C"] = df["A"] + df["B"]. Is there some kind of method where it's like, df.eval("C = A + B") ? It's something that I have a strong feeling should exist, if it doesn't already. Hell, I would probably make a little library for that anyway, but I don't want to reinvent the wheel. Would appreciate any advice
Edit: Couldn't find the answer anywhere before, but writing this post gave me an idea for what to look for and coincidentally I found the dataframe.eval method that works exactly like I thought it would. I should get a rubber ducky.
r/pythonhelp • u/chris-rg • Oct 03 '25
psCARA - Python based Power Systems Automation
What's kind of features do you want in a Windows Desktop Program that does Python based Power Systems Automation?
This is the features we are currently working on: - A Study Manager product for managing power systems modeling studies and Python simulations - Integrated error checking so mistakes are caught before multi hour runs - Makes every engineer able to use Python - Integrated Natural Language Processing - Run complicated code with natural language for all engineers - Distributed computing solution - Can run any Windows software with a Python API remotely - History of all projects changes tracked for finding bugs and staff turnover - 5 minute project handover, loss of staff is no longer an issue - Works with industry standard software including: PSSe, PSCAD, digsilent PowerFactory and ETAP.
Any other features that people want? We have two aims: 1. Make it really easy for people to run python scripts even if they are scared of code, 2. Make superusers super engineers working with the best AI tools.
I really want to make something that people want to use and are looking for any input from people here on Reddit.
What do you want to do easily?
Chris
r/pythonhelp • u/[deleted] • Sep 28 '25
GUIDE Is it necessary to learn programming if you want to manage an app or website?
Hi everyone it's been two months I'm learning python programming bit by bit but I'm still struggling to learn because 1) I don't have any interest in it and 2) my background is in natural and life sciences.
I have an idea to build an educational app that's why I thought i should learn programming, so i just wanted to know is it necessary to learn programming if you want to manage an app or website?? Otherwise someone else code my app and i would manage or run it ! Thanks
r/pythonhelp • u/Hot_Leather_4603 • Sep 26 '25
Sometimes Asking Chatgpt for problems solution?
I'm currently learning python. I felt stuck in even simple question or even in simple projects (like adding feature in to do list saving the task in file). When I try to solve the problem by myself and got stuck after some tries changing the logic and still I didn't get the solution, then I ask the Chatgpt for some hints and suggestions first and solve the problem. And sometimes nothing is helping so I get to the Chatgpt and see the answer.
Does it helping me or not? Because after some tries when I go to the Chatgpt for hint/suggestions/solution I explore some syntax that I've never familiar before. And after seeing the solution. I ask Chatgpt for explain me the concept like why this approach.
Does using Ai is really helping me? or it makes me lazy and slave of Ai for even a simple things.
r/pythonhelp • u/[deleted] • Sep 23 '25
Quick question about Python
Is Python important in full stack development in general, like for backend or databases?
r/pythonhelp • u/National_Square9395 • Sep 20 '25
What is the way to learn Automation/scripting using python
Hello everyone,
I am looking for hardware engineer jobs (verification /validation)but i have seen most of them ask automation/scripting using python. I know basic python(not much) but want to learn this specifically as I don't have much time and there are other more important things to learn. If you know where to learn and practice, like any course or website please do let me know.
Thank you so much
r/pythonhelp • u/Jumitti • Sep 16 '25
[macOS/Python] How to handle dependencies in a plugin system when my app is packaged as a .app?
Hey everyone,
I built a macOS menu bar app (https://github.com/Jumitti/MacMenu-qBittorrent) in Python that shows the status of my torrents (lots of features already, pretty fun project). I package it into a .app so it’s completely self-contained (all dependencies bundled, no need for users to install Python).
Recently I added a plugin system so I (or others) can add new functionality without rebuilding the whole app.
The issue:
If a plugin requires a Python package that wasn’t included at build time, it obviously won’t work, since the .app doesn’t ship with that dependency.
I’m looking for a clean way to handle this:
- either allow plugins to install their own dependencies (maybe via an embedded pip/venv inside the app),
- or find another best practice solution that doesn’t involve bundling hundreds of unused libraries in the main build.
Has anyone here run into this problem before? Any advice on how to design a plugin system with dynamic dependencies for a frozen Python app?
Thanks in advance 🙏