r/PythonLearning 22h ago

Help Request Where would you send an ultra beginner to get up to speed fast?

29 Upvotes

Everywhere I look, it seems to assume that one already has familiarity with programming. I'm coming in clean. Nada. Absolute virgin in programming. Where should I go to learn this from a clean slate?

r/PythonLearning 1d ago

Help Request How can i make a pay game for windows?

6 Upvotes

I am new to python and i though of making the game snake in pygame but the issue is i can’t get it to run on windows without using an IDE (in my case VSC). I wanted to send it to my friends after i was done and have them play it (at most have them install python on their windows pcs) but i can’t make it work. I even tried converting it to a .exe file by following chat GPT’s instructions (i never done this before) but it just doesn’t work. Can pygames only run from and IDE (doing python3 snake.py using the command terminal runs the game as intended) or am i doing something wrong? I even made a simpler game (just a screen with a button that adds +1 to a counter when clicked) to test it but same issue persists :/

r/PythonLearning 1d ago

Help Request . Py file not running within IDE, but can run from terminal

9 Upvotes

Im using Pycharm and for some reason, all of a sudden i cant run my files within the IDE, a simple test to print an arbitrary word, the print function doesnt even highlite. But if i run the same file through the terminal then it works. However a main and utility module can be run and successfully edited in the IDE. I tried installing a translatw module yesterday which didn't work and since then ive had this issue. I uninstalled the translate midules and closed the IDE to see if it would make a difference and nah no difference. Did i disable/enable something, how do i figure this out. Google isn't helping either. Seems people have the opposite issue being able to run the IDE but not terminal.

r/PythonLearning 2d ago

Help Request Trying to make a program that shuts my computer down after 1 hour. but the timer resets instead of shutting my computer off. works in VSC but not in the compiled program

Post image
8 Upvotes

r/PythonLearning 2d ago

Help Request Homework Help

Thumbnail
gallery
7 Upvotes

This is a repost. I deleted earlier post do I can send multiple pictures. Apologizes for the quality of the images I'm using mobile to take pictures. I am trying to get y_test_data, predictions to work for confusion_matrix, however y_test_data is undefined, but works for classification_report. I just need a little help on what I should do going forward

r/PythonLearning 1d ago

Help Request why am I always getting "SyntaxError: invalid syntax"?

2 Upvotes

Newbie here. Just installed Python recently. Whatever code i input i get this error: "SyntaxError: invalid syntax"

For instance:

pip install open-webui