r/learnpython • • Sep 24 '22

Python is fucking haaaaaaaard for someone without a coding background whatsoever<vent>

0 Upvotes

So I'm someone who grew up with zero coding background but I'm not computer illiterate... Growing up the most advanced thing I did on my computer was download pirated games and thought I was a genius. I went to business school.

I touched my first excel file at my first job and it caught on pretty quick... I got really good that by the time I was leaving that job I was the designated person excel trainer. My then boss advised me to learn bi so I startled learning powerbi and all other sort of BI tools... At my next job I learned SQL which was super easy. And also become a go-to person for sql queries in that company.

Then liars stared saying "you should learn python" "it's super easy". It's been years now and I can barely string together a piece of code to open an excel file without googling the syntax. It's so fucking difficult. To do the simplest of shit without googling.

I noticed the people who say python is easy to are people who have had prior experience/learning in other coding languages and python came in to make things easier. I get that. And for them that's fine. But for people starting with python without any prior coding whatsoever... It fucking SUCKS..

end of rant. Someone please buy me a glass of milk.


r/learnpython • • Mar 17 '24

It's true,If you are not good at math, back-end programming may not be suitable for you.

0 Upvotes

It's true,If you are not good at math, back-end programming may not be suitable for you.

What would you recommend for someone who is not good at mathematics? Should they focus on a specific programming area or language?


r/learnpython • • Jun 21 '23

Using ChatGPT (4) for Python programming is getting worse, alternatives?

0 Upvotes

Hello!
New to python development in 2023. Ive been using the paid version of chatgpt for quite some time now but as of late its getting quite bad with debugging and coding as its forgetting simple items such as calling out api's even though it had mentioned it seconds before.

Wondering what else the community is using? e.g. copilot


r/learnpython • • Nov 27 '22

This is why I hate programming

3 Upvotes

It invarably happens, whenever I try to start a new VERY simple project that either python complains about something or Linux complains, or spyder complains, or who knows who might complain about something being wrong. Then I end up spending the next hour pouring over google search results trying to find ANYONE who has had this problem before. I find, and try half a dozen different 'fixes' that none of them work and I end up tearing my hair out.
Then I end up here, begging anyone to solve my problem.

I wanted to write a simple little script that would play audio files. I found one named AudioPlayer that seems to suit my needs. I install the module and write about a dozen lines of code, and run it only to be prompted with 'No module named 'gi''.

Funny, I don't recall ever asking for a module named gi before, regardless, the file refuses to play.

again, I pour thru google search results trying to find a solution, to no avail. I've tried half as dozen (or more) different 'solutions' without success.

I am running anaconda on Ubuntu with Python 3.9.12.

Does anyone have an idea how I can solve this?


r/learnpython • • Dec 25 '18

Can someone please help me through TeamViewer to bring a working below-average-complexity script to 100% code quality? (I'm using PyCharm, Python 3.7)

3 Upvotes

Can someone please help me through TeamViewer to bring a working below-average-complexity script to 100% code quality? (I'm using PyCharm, Python 3.7)

I'm doing this because I want to learn to code like a hitchhiker. Right now the script is mostly one page. I want it to be a non-redistributable script which uses a redistributable package (which is actually just a simple class that I'll be re-using in other scripts of mine), I want it to have proper structure, tests, logger, naming conventions, fancy 3.7 way of coding etc. Obviously, it has some of these already, but it's far from perfect.

To conclude, will someone please help me, for this project, to code following proper standards?


r/learnpython • • Aug 09 '24

What is the best way to learn Python in 2024?

3 Upvotes

Hi everyone,

I started working as a Data Analyst a year ago without
any coding experience and started to complete video courses on Udemy.com,
as this was recommended to me as the best way to get started with improving
your coding/Python skills. While the courses has significantly improved my
understanding of the fundamentals of Python and what it actually means to
"code", I find myself only using ChatGPT to generate the code, not
writing anything myself.  

The courses I have been taking was created in
2020 before the release of ChatGPT. Obviously the courses does not mention
anything related to using AI to speed up the process of coding. This got me
thinking: Since the process of coding has changed significantly with the
availability of AI/ChatGPT, are video courses like these still the best way to
learn how to code in Python? Is it still necessary to learn how to manually write
the code yourself or is it more important to learn the possibilities of Python
and how to prompt using AI and then have AI write out the code for you? Would
you still recommend courses like these to people getting started with Python or
is there something better out there?

 


r/learnpython • • Aug 15 '24

Been trying to make this code work for 2 days now

3 Upvotes

So all i want this to do is to execute a loop 3 times, and expect the user to input a yes or a no, otherwise they'll get a custom message. When the user reaches the 3rd iteration it'll get fed up and crash the program on purpose. (note that i haven't added a keyword to make the crash happen) but that's because i'm still trying to get the other exception and conditionals to work (which they haven't)

while True:
    try:
        si_no = input()
        if si_no.upper == "YES":
            print(m)
            print("Great!")
        elif si_no.upper == "NO":
            print(m)
            print("Idiot")
            print("...I'll show you anyways")
        break
    except range(3) == 2:
        print("screw you")
    except not si_no.isalpha():
        print(m)
        print("psst have a hint, write yes or no")
        print("Have another chance")
        print(m)
        print("yes or no?")
        print(m)

r/learnpython • • Jan 12 '25

Mark Zuckerberg said meta AI will replace mid level engineers?

0 Upvotes

Hi all, I recently listened to Mark Zuckerberg talk on the JRE. He’s said that Ai is going to replace mid level engineers in the next few years. I’m about 3 months into learning Python and potentially looking at going back to university to study Computer science or something similar. Is this still a good idea considering what I’ve just heard ???


r/learnpython • • Nov 02 '24

HELP ME pls hehe

0 Upvotes

Im 11 and I made this code for a to-do list

#Variables
todo_list = []
run = True

#Extracted codes - for clean code hooooooooray
def caseA():
    add_task = input("Task:")
    todo_list.append(add_task)
    
    
if
 add_task != "quit()":
        print(f"Your to-do list now have {len(todo_list)} tasks. COMPLETE IT!")
    
else
:
        quit()

def caseD():
    removed_task = input("Task want to delete: ")
    todo_list.remove(removed_task)
    
if
 removed_task != "quit()":
        
if
 removed_task != 0:
            print(f"1 done. {len(todo_list)} more to go!!")
        
else
:
            print("wohoo! Ur done all ur tasks!")
    
else
:
        quit()

def caseP():
    i = 1
    
for
 tasks 
in
 todo_list:
        print(f"{i}. {tasks}")

while
 run:
    
try
:
        print("Welcome to To-Do list program (made by hung a.k.a skibidi max aura, rizz sigma male)")
        print("Actions: add tasks(A), delete tasks(D), print list(P)")
        user_action = input("Enter desired action: ")
        
if
 user_action == "A":
            caseA()
        
elif
 user_action == "D":
            caseD()
        
elif
 user_action == "P":
            caseP()
        
else
:
            print("Invalid action")
            run = False
    
except
 KeyboardInterrupt:
        print()
        print("EXITED-PROGRAM")
        run = False

Why when i executed action P, it restarts da program?

HELP PLS =)


r/learnpython • • Dec 22 '25

As an end user, having to us multiple versions of python is a nightmare. Curious why it's like this?

13 Upvotes

My level of skill.. I can hack together samples of code to make an led blink.. and a bit more on an Arduino, but I'm really not a coder.

Some things i do though seem to employ python.

Flight sim plugins, Local AI fiddling, a bit of this and that.

The one most annoying thing about Python that makes me hate the hell out of it is that is seems to not be backward / forward compatible.

I have 3.13 installed for something, don't recall what exactly at this time.. but now am installing a local StableDiffusion setup to play with and that wants 3.10

Prior to an OS reinstall I was also using i think 3.9 for some flight sim stuff.

Every thing i do relating to Python states that a specific version is needed.

It's annoying as hell.

I can run HTML from 20 years ago in a current browser and it's a non issue.

I can compile 15yo Arduino projects in a current IDE and not have an issue.

Is there a reason for this?
Is there something i can do to make my life easier with regards to this?


r/learnpython • • Oct 04 '26

[Help] The os.system is deprecated

0 Upvotes

I've seen someone else asked this question, but get no answer.

I want to make a countdown clock without leaving any trace of previous numbers:

for i in range(countdown, 0, -1):
    os.system("cls" if os.name == "nt" else "clear") #Error: os.system is deprecated
    print(i)
    time.sleep(1)

What should I do instead? (Why can't we put pictures here....)


r/learnpython • • May 04 '23

Help using Python to move the mouse left and right in Overwatch

0 Upvotes

I started off trying pyautogui, which seemed to work in the menus and for selecting characters. During actual gameplay, pyautogui was not registered.

I swapped over to pydirectinput, and it was able to be picked up that the mouse was moving in gameplay. Unfortunately, it seems to move very unpredictability and leave the character looking at the sky or the floor every time, even when I am not sending any Y input whatsoever. I've also tried exclusively moving on the Y axis and that still has the camera moving around on the X axis in-game. If it helps I've mostly pydirectinput.move.

Any advice would be greatly appreciated, I just want to know if its possible to make the character do a roughly 45° turn with pydirectinput or something similar. Thanks!

ISSUE SOLVED: A helpful user in the comments recommended to use pydirectinput.moveRel(200, 0, relative=True)

This moved the camera in on the X axis without doing anything on the Y axis, so no more looking at the sky or floor!


r/learnpython • • Sep 28 '25

Ok so I am a beginner at python, how to make the break function go inside the loop

0 Upvotes

I started learning python like a week ago. I just create a simple if and else code, but I wish that when the else code is run the code would stop


r/learnpython • • Oct 09 '24

Anyone not using uv? Why not?

0 Upvotes

I was using rye because awesome but slow.

Now using uv because awesome and faaaaaast.

Is there any reason not to use uv?


r/learnpython • • Jun 02 '24

How do I make a self learning assisant AI with personality?

0 Upvotes

Im autistic, and sometimes I feel a litttle lonely due none of my classmates likes me… so I wanted a “robotic friend” to interact with when I’m feeling down or sad… is it possible?


r/learnpython • • Jun 03 '23

ChatGPT as Learning Resource

2 Upvotes

Here's how I've been using chatgpt to practice python.

Step 1: Head over to Kaggle and find a practice dataset

Step 2: Tell ChatGPT a bit about the data and ask it to give me some research questions to answer.

Step 3: I take a pass at answering the research questions 1-by-1.

Step 4: Once I've taken a pass at it, I feed my code back to ChatGPT and ask it to optimize it.

Step 5: Rinse & Repeat.

How have y'all been leveraging ChatGPT to improve your work?


r/learnpython • • May 31 '22

Why should I learn Python!?

2 Upvotes

Hi reddit, I'm really hoping some of you can show me why I can benefit from learning Python. I'm a psych grad, mental health therapist, not-for-profit leader, trainer/facilitator, parent coach. But I'm terrified of becoming an irrelevant old dinosaur if I don't learn about coding!

Anyone from those fields (social work, etc) who can speak to how it's helped them?


r/learnpython • • Mar 12 '21

what is base 10? and where can you find better online tutorials?

0 Upvotes

i do not know math beyond quantitative math and i have been trying to learn python for my first programming language. I had heard that you do not need to be good at math, but dear lord it sure as hell feels like i need to finish trig first sometimes. I am currently inside tutorial hell and this particular site is throwing huuuge curvballs at me even in the beginner lessons. for example this site is talking about casting explaining things like this

  1. When converting string type to int type, a string must contain integral value only and should be base-10.

  2. We can convert any type to int <---- there about to contradict themselves
    type, but we cannot perform complex to int type. <----- contradicts what they just said

maybe id be less confused if they said we can convert any type to an int EXCEPT complex type? or is it just that this mf website sucks ass at teaching?

so for one, what the fuck is base-10? and why am i expected to know that already when it was never in previous lessons? and two why can you convert any type to an int but you cant perform a complex type to and int? which contradicts what they just said???????? fuck programming is hard.

so like where should i go online to teach myself programming?


r/learnpython • • Feb 13 '22

Script that can log into my computer at a set time with my credentials

2 Upvotes

At my job it takes about 5 minutes for the computer to load to the desktop. Is there USB script I can use that can auto input my login credentials at a set time every week?

I’d like to arrive to work and my system is already loaded for me to start working.


r/learnpython • • May 13 '17

What's the Python way of doing: while (x /= 10):

0 Upvotes

What's the Python way of doing:

while (x /= 10):

For the above the Python compiler gives:

SyntaxError: invalid syntax

What I want to do is that the x /= 10 should do:

x /= 10

and then evaluate x through bool to decide for the while-statement.


r/learnpython • • Nov 03 '22

VSCode or Pycharm???

2 Upvotes

I have been using pycharm quite a bit as I am learning. However, I am switching to start using my alienware windows 11 laptop instead of my linux laptop. Easier to see the code I am writing and much more powerful. I like what I am seeing with VSCode. does anyone have any pros and cons between the two?


r/learnpython • • Jul 01 '25

"cd Desktop\python_work" just doesn't work.

2 Upvotes

I'm on the 12 page of this book> I am simply trying to run a dang "Hello Python World" on the terminal and it just can't find the file. It's in the OneDrive, and even when I add it to the path, it still can't find it. I have uninstalled and reinstalled Python and VScode, shoot, I reinstalled Windows, no change.

Am I doing something wrong? Clearly I am, but what? I've followed what everybody was saying on stack overflow and if I'm going by what I'm reading in command prompt, that file just doesn't exist DESPITE ME LOOKING AT IT RIGHT NOW!!!!!

Please, I need help with this.


r/learnpython • • Mar 02 '26

I know how to code, but when it does to make anything from scratch i suck?

2 Upvotes

Like, the syntax and the logic are all in my mind, but when it comes to actually building things from scratch, I really suck. I just freeze. It's so hard to actually think and search for answers without AI, and when I use it, I just feel bad. I don’t know if I’m just being paranoid or something like that. When I search for how to get better, I only find lame tips like “make simple programs” and blah blah — things I already know how to build easily. But I want to make cool things, it's so boring, idk if i'm in beginner hell or intermediate hell


r/learnpython • • Jun 15 '25

Stuck learning python

5 Upvotes

I'm a python beginner , Ik all basics of python(dk any frameworks). I did some 10-15 Leetcodes(jst started). But at this point Idk what more to learn.. In youtube nd Google there are tutorials for beginners but it's very basic. Idk what to learn next km confused , I wanna learn frameworks like flask, pytorch or Django but idk wht to start first or which will be very useful for me if I learn. My intention is to use my time properly to learn python before my clg starts .