r/pythonhelp • u/SVD_09 • Apr 23 '26
Want to start learning PYTHON.
I thought to start learning PYTHON. But I have windows 8.1 and having trouble in downloading and installing python and vs code in laptop due to older widows . Someone help to do it.
r/pythonhelp • u/SVD_09 • Apr 23 '26
I thought to start learning PYTHON. But I have windows 8.1 and having trouble in downloading and installing python and vs code in laptop due to older widows . Someone help to do it.
r/pythonhelp • u/Low_Badger_8515 • Jan 11 '26
Hi all, I am a career changer, and learned Python, SQL, and Flask API through a bootcamp. I want to apply for junior Python developer roles. I’ve built two projects so far:
A Flask API to manage pet records for a shelter, using a SQL database
And, a python console that recommends Korean dramas based on your mood, using the TMDB API
Are these projects good enough to include on my resume? If not, can you sugggest project ideas that I can create and put in my resume.
r/pythonhelp • u/naemorhaedus • Dec 15 '25
Lets say you are developing a longer script and you want to divide the work up into smaller chunks, how do you do it?
For example lets say your script has a user interface portion, then a computing stage, and a displaying output part, and you want to focus on each part independently. You are going to be revising and running code over and over. You want to test and debug one portion at a time, without needing to run through the entire program.
I'm fairly new to Python, and so far I've just been creating new files to work out how to code a solution. I copy over any necessary pre-existing code. I use placeholder data wherever I can to speed things up. When I'm happy that it works the way I want, I integrate it into my main script. But this seem inefficient. There must be a more elegant way.
So how do you do it? Are there Python commands that help with this process? Maybe something to organise code into sections, and a way to manipulate program flow?
r/pythonhelp • u/IcyPalpitation4743 • Nov 30 '25
Hi everyone!
I’m learning Python and came across the slicing syntax [::-1].
I know it reverses a list, but I don’t fully understand how the negative step works internally.
nums = [1, 2, 3, 4]
print(nums[::-1])
Can someone explain what start:stop:step means in this context and why -1 reverses the order?
Not homework — just trying to understand slicing better.
Thanks!
r/pythonhelp • u/Nutellatoast_2 • Oct 01 '26
Hey everyone,
I'm experiencing a performance drop when running a Python file. I'm using VS Code on Windows 10 while learning to program.
When I hit the run button, the runtime of the program is 5.0 seconds, even though it should execute in roughly about 0.003 milliseconds.
I have tried switching to older versions like 2025.6.1, but that didn't work.
Any solutions to that problem?
r/pythonhelp • u/androgynyjoe • Jun 13 '26
Hi everyone!
I've got a dictionary like this:
{
"A": {
"x": 1,
"y": 2,
},
"B": {
"x": 13,
"y": 4,
},
}(Obviously it's much more complicated in practice.) I would like to convert it to an enum.Enum class that allows for stuff like this:
class MyEnum(enum.Enum):
pass
# There would be some extra work here
print(MyEnum.A.x) # returns 1
print(MyEnum.A.y) # returns 2
print(MyEnum.B.x) # returns 13
print(MyEnum.B.y) # returns 4Any suggestions on how to do that?
EDIT: So, I am fully aware that I can do this:
class MyEnum:
class Pair:
def __init__(x, y):
self.x = x
self.y = y
A = Pair(1, 2)
B = Pair(13, 4)That isn't what I want. I want the same functionality but generated from a dictionary. I also understand that it's a weird thing to want.
r/pythonhelp • u/Haandotexe • May 01 '26
hi, i have very limited knowledge of coding, but I'm trying to install something from github and i've been able to figure out most of it, but im stuck on this step.
i've manually installed python for windows 11 and i've successfully installed pip3 with windows powershell, but despite doing this, when i go to git bash to paste in the next line of code I need, i get the error "bash: pip3: command not found"
i even went through the advanced settings on windows to add the correct subfolder of pip3 to PATH, but git bash is still giving me the same error message.
sorry if this isn't enough information to resolve my issue, i'll try to be active and respond to any follow-up questions people have. im honestly just not sure what else to do to fix things.
EDIT: the issue was just that i didn't restart git bash after installing pip3 and python... as i said, im Very new to this
r/pythonhelp • u/FedKitty • Dec 03 '25
Hello everyone,
for a work related project we need to formate and change text in an article safed as .docx. Its for a collection volume of scientific articles and the publisher gave us some rules for the format and how specific text parts need to look. For example, in a few articles, we need to change all quotation marks or unify how a century is written (80th -> 1980) and stuff like that. Doing this proofreading and changes via hands seems very exhausting to me so I am trying to automise it (at least some parts of it).
I already tried out "python-docx" but I think it is not quit the right library for my usecase.
Thank you for reading and potential tips!
r/pythonhelp • u/aaravsharmxa • Oct 16 '26
I'm a first year student learning Python rn and I swear everything makes sense when someone explains it but the moment I try to solve a question on my own, my brain just stops working is this normal in the beginning or am I missing something? how did you guys get better at solving problems without looking at the solution??
r/pythonhelp • u/py_arrow • Sep 12 '26
I've been learning Python through CS50P and wanted a real project, so I built two scrapers: one for job listings and one for product prices off an e-commerce site.
The job scraper was pretty straightforward — grabbed title, company, and location, dumped it to CSV, worked first try on about 100 listings.
The product scraper was the harder one. The site spreads results across pages (6 products per page, ~20 pages), so my first version only ever grabbed page 1. Took a bit of digging to figure out the pagination pattern and loop through all the pages properly. Once I fixed that it pulled all 117 products cleanly into a CSV.
Biggest thing I learned: it's easy to write a scraper that works on the first page and assume it's done — always check if the site paginates before you call it finished.
Code's on GitHub if anyone wants to see it: github.com/sarimkhan08
Curious if anyone here has tips for handling scrapers on sites that use infinite scroll instead of numbered pages — that's the next thing I want to tackle.
r/pythonhelp • u/Fluffy-Art179 • Aug 28 '26
As a guy and a fresher in engineering field, who knows basic python and java , can anyone give advise or guide me to win or atleast the things to do in a proper hackathon rather than working unorganisedly..
r/pythonhelp • u/Annual_Eye_2905 • May 14 '26
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
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/Adventurous-Major797 • Jan 26 '26
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
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/Hot_Leather_4603 • Sep 26 '25
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/National_Square9395 • Sep 20 '25
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/Straight_Face_3273 • Mar 20 '25
I've been desperately trying to use python to capture data using APIs but I'm constantly getting indent errors even though they appear correct in VS Code. Is this a common issue? I see lots of comments on it and have used several methods to get it right. I've spent days on this trying to make it work. Could the issue be related to copying and pasting from VS Code? I'm old so be nice. I will fully admit I don't know what I'm doing.
r/pythonhelp • u/ladyjane345 • Nov 23 '21
Hello, I have to do a coding project which I need to upload in a couple of days.
For the meantime I have been using this method to import the csv file from my laptop.
from google.colab import files
uploaded = files.upload()
and then select the file from my computer.
But I don't think I can do this when I actually need to download and then upload my project to be graded.
If it helps I got the CSV file from this link, is there a way I can maybe import it from online?
https://www.kaggle.com/harti28/independence-and-interdependence-in-sports
Sorry if this is simple, I don't really understand what it is saying online when I research it.
r/pythonhelp • u/mccedian • Jun 04 '21
Hey everyone. I am by no means a programmer, but I had recently discovered an area of my job that could be automated. Knowing enough about programming to screw things up a came here for help. The people that responded were incredibly helpful and also for supportive. Its all too common on reddit to have a person in genuine asking for help and being beaten over the head by a toxic mob mentality. This is a great place and it needs to noted. Thank you everyone.
r/pythonhelp • u/ap_005 • Mar 12 '21
r/pythonhelp • u/SugoiShades • Jan 25 '21
r/pythonhelp • u/TDinh16 • Nov 25 '20
I need help on this problem. I need to read and set base and height for both the two triangles using set_base and set_height. Then I need to determine larger triangle using get_area. Then I need to output the triangle's info using print_info()
Given class Triangle, complete the program to read and set the base and height of triangle1 and triangle2, determine which triangle's area is larger, and output the larger triangle's info, making use of Triangle's relevant methods.
Ex: If the input is:
3.0 4.0 4.0 5.0 where 3.0 is triangle1's base, 4.0 is triangle1's height, 4.0 is triangle2's base, and 5.0 is triangle2's height, the output is:
Triangle with larger area:
Base: 4.00
Height: 5.00
Area: 10.00class Triangle:
def __init__(self):
self.base = 0
self.height = 0
def set_base(self, user_base):
self.base = user_base
def set_height(self, user_height):
self.height = user_height
def get_area(self):
area = 0.5 * self.base * self.height
return area
def print_info(self):
print('Base: {:.2f}'.format(self.base))
print('Height: {:.2f}'.format(self.height))
print('Area: {:.2f}'.format(self.get_area()))
if __name__ == "__main__":
triangle1 = Triangle()
triangle2 = Triangle()
# TODO: Read and set base and height for triangle1 (use set_base() and set_height())
# TODO: Read and set base and height for triangle2 (use set_base() and set_height())
# TODO: Determine larger triangle (use get_area())
print('Triangle with larger area:')
# TODO: Output larger triangle's info (use print_info())