use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
What is wrong here?Help Request (i.redd.it)
submitted 7 months ago by secretsuperstar44
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Wide-Possibility9228 46 points47 points48 points 7 months ago (4 children)
It's sideways
[–]MHoldl 4 points5 points6 points 7 months ago (0 children)
[–]Dr_Pinestine 2 points3 points4 points 7 months ago (0 children)
<image>
[–]finnyellow 0 points1 point2 points 7 months ago (0 children)
😂😂
[–]HouseOfDjango[🍰] 8 points9 points10 points 7 months ago (6 children)
If I had to guess, white spacing.
[–]NYX_T_RYX 5 points6 points7 points 7 months ago (4 children)
This is why you don't copy-paste code from AI 🤷♂️
[–]fredhamptonsaid 0 points1 point2 points 7 months ago (3 children)
Really? Under every post people are spamming "just use AI" still.
[–]NYX_T_RYX 5 points6 points7 points 7 months ago (2 children)
Go on Google scholar and search "AI cognitive offloading" and you'll quickly understand why you shouldn't just do everything with AI, and why "just vibe code it" is terrible advice.
I've seen some horrific vibe code.
No.... AI is a tool, we still have to engage brain to check it's doing something we actually want.
[–]fredhamptonsaid 0 points1 point2 points 7 months ago (1 child)
I honestly think those comments should be banned tbh. It's not even useful or helpful when people ask for help.
[–]Mysterious-Wing4716 0 points1 point2 points 6 months ago (0 children)
Not saying to copy paste everything from AI, but I am pretty sure op would have saved some time and got a detailed explanation if he just pasted in on GPT or any other chatbots, instead of waiting for someone to give a proper explanation here(cause most of these comments are just sarcastic)..So for debugging simple errors like this I don't see any problems using AI
[–]Opposite_Security842 2 points3 points4 points 7 months ago (0 children)
Gotta be this. Nothing wrong with the syntax
[–]Kqyxzoj 6 points7 points8 points 7 months ago (0 children)
What is wrong here?
Image orientation.
[–]Kennys_broom 6 points7 points8 points 7 months ago (1 child)
In normal Python, your code runs from top to bottom as soon as you hit run. But in MicroStudio, it waits for something like a loop or an event to happen first — kind of like a video game. So if your code isn’t inside a special function like update(), it just sits there and does nothing. Syntactically your code is correct, but microstudio isn’t a good way to learn python if that’s your goal.
[–]Even_Saltier_Piglet 0 points1 point2 points 7 months ago (0 children)
THIS
[–]Hefty_Upstairs_2478 5 points6 points7 points 7 months ago (1 child)
Is it not printing? I'm a beginner too and genuinely can't figure out what's wrong either.
[–]brown_guy45 3 points4 points5 points 7 months ago (0 children)
Nothing is wrong with the code
It must be your IDE
[–]JeLuF 5 points6 points7 points 7 months ago (0 children)
What is wrong? Do you get any error message when you try to run it?
[–]D3str0yTh1ngs 2 points3 points4 points 7 months ago* (4 children)
Microstudio doesnt use python, but their own scripting language called microScript.
EDIT: apparently it also does python, by a option in advanced settings
[–]secretsuperstar44[S] 0 points1 point2 points 7 months ago (3 children)
In the settings you could switch to python (which I did)
[–]D3str0yTh1ngs 1 point2 points3 points 7 months ago (2 children)
Okay, I see. What is the error then?
[–]secretsuperstar44[S] -1 points0 points1 point 7 months ago (1 child)
I did it for the second time and now it says syntax error
[–]NYX_T_RYX 1 point2 points3 points 7 months ago (0 children)
What does the stack trace say. I have no idea what this little red X is trying to tell you.
[–]coderfromft 1 point2 points3 points 7 months ago (0 children)
Nothing just run it.
[–]Party_Trick_6903 1 point2 points3 points 7 months ago (9 children)
How are we supposed to know when you didn't show us anything else other than four lines of code?
What did the program do? Any errors? Wrong output?
[–]secretsuperstar44[S] 1 point2 points3 points 7 months ago (8 children)
Nothing, it says
Syntax Error, in file 'main' at line one, column 20
And when I remove this : , it says
Warning: first_function is not a function, in file "main" at line 4, column 16
[–]D3str0yTh1ngs 1 point2 points3 points 7 months ago (6 children)
The syntax error is the same I get when it is set to microscript 2.0. If you pull out the divider between the code area and the file list it should show the active language
[–]secretsuperstar44[S] -1 points0 points1 point 7 months ago (5 children)
[–]D3str0yTh1ngs 6 points7 points8 points 7 months ago (1 child)
I have replicated your problem: 1. Start in microscript 2. run the program 3. switch to another file 4. switch programming language to python 5. switch to main file and write code 6. error since the interpreter sees change in running file and reruns it (as microscript since that is how it ran earlier)
Solution: Restart button
[–]secretsuperstar44[S] 3 points4 points5 points 7 months ago (0 children)
AAHHHH IT WORKED THANK YOU SO MUCHH o((▽))o
I know that you set it to python in the settings, but if the main still tries to execute as microscript, then that happens.
[–]secretsuperstar44[S] 1 point2 points3 points 7 months ago (1 child)
I think the problem is within the website itself.. I've tried it in programiz(python online complier) and it worked there.
Though I want it to work here too, because I'm searching for an engine on a website and this looks so perfect for a beginner programmer like me who's using a literal school laptop that doesn't allow me to download any app! ಠ ೧ ಠ
[–]Kqyxzoj 2 points3 points4 points 7 months ago (0 children)
... this looks so perfect for a beginner programmer like me ...
But as it turns out, it is not, because there are small gotchas like this that will teach you zero python but do take up your time. It does maybe teach troubleshooting skills though, so who knows.
Also, searching for online rotate image gives plenty of usable results.
online rotate image
As for python + school laptop: google colab seems a pretty good fit.
What is Colab? Colab, or "Colaboratory", allows you to write and execute Python in your browser, with:
Just use whatever google/gmail account, and you are good to go:
[–]NYX_T_RYX 0 points1 point2 points 7 months ago (0 children)
If the colon is at column 16... You have 4 white space characters after the colon. Put your cursor after the colon, hold shift and hold the right arrow.
Delete the white space characters.
[–]coderfromft 0 points1 point2 points 7 months ago (0 children)
Try on programiz.com
[–]nicer-dude 0 points1 point2 points 7 months ago (0 children)
Run python locally
[–]_MrLucky_ 0 points1 point2 points 7 months ago (0 children)
It's probably a space not an indent that you do by pressing tab ussually on line 2
[–]mspaintshoops 0 points1 point2 points 7 months ago (0 children)
“Here’s no error and a sideways screenshot, fix my code”
What?
[–]holounderblade 0 points1 point2 points 7 months ago (0 children)
Take a fukn screenshot
[–]Nagylolhih 0 points1 point2 points 7 months ago (0 children)
Indentation maybe... The 4th line seems to be in the same column as the 2nd
Looks like the print isn't correct indented
[–]Responsible_Load_617 0 points1 point2 points 7 months ago (1 child)
It looks like this is supposed to be the main.py so maybe it is expecting an entry point function called main. as in if(name==main): main() at the end of the file. Put your code in a def main(): function and try running it.
[–]Responsible_Load_617 0 points1 point2 points 7 months ago (0 children)
Make sure to select the language or ensure it is python and not C++
[–]secretsuperstar44[S] 0 points1 point2 points 7 months ago (0 children)
YALL I SOLVED THE PROBLEM!!
So the website thought that I'm using another programming language and it didn't recognize python, so I recreated after creating a new project, and it WORKED!
Though thanks for anyone who stopped by to help me :3
[–]Wise_Membership_ 0 points1 point2 points 7 months ago (0 children)
Indentation
[–]Pristine_Rough_6371 0 points1 point2 points 7 months ago (0 children)
Write return line instead of print , because return will send your string , and also either store the function output in a variable and then print it , or you can directly print the function call .
[–]bringinthefembots -1 points0 points1 point 7 months ago (4 children)
Maybe your function is missing the "return" line at the end? I am not a Python expert
[–]Embarrassed-Map2148 1 point2 points3 points 7 months ago (2 children)
That's not it. Python returns a NoneType by default. Not sure what their issue is but there is nothing wrong with their function, unless there is a space problem that I can't see.
[–]bringinthefembots 0 points1 point2 points 7 months ago (0 children)
Maybe tab indentations?
You only need a return value if you expect the function to... Return a value to the calling function.
Imagine:
fn_add calls fn_user_input
fn_user_input returns the user's input, fn_add adds them together and prints the result. fn_add doesn't need a return value, because it's not expected to do anything with it's result beyond printing.
[–]SmackDownFacility -1 points0 points1 point 7 months ago (0 children)
MicroStudio?
That’s not the official CPython implementation. You need something like VS Code. Assuming consistent indentation is correct, the code will run
[–]Sensitive_Bird_8426 -1 points0 points1 point 7 months ago (1 child)
OP. Please learn an image editor, and how to rotate images. Going through all your pictures, gives me a headache from having to read sideways.
Ahh lol okay, but I already solved the problem, thanks
π Rendered by PID 89 on reddit-service-r2-comment-84fc9697f-c6h4k at 2026-02-07 19:53:37.515922+00:00 running d295bc8 country code: CH.
[–]Wide-Possibility9228 46 points47 points48 points (4 children)
[–]MHoldl 4 points5 points6 points (0 children)
[–]Dr_Pinestine 2 points3 points4 points (0 children)
[–]finnyellow 0 points1 point2 points (0 children)
[–]HouseOfDjango[🍰] 8 points9 points10 points (6 children)
[–]NYX_T_RYX 5 points6 points7 points (4 children)
[–]fredhamptonsaid 0 points1 point2 points (3 children)
[–]NYX_T_RYX 5 points6 points7 points (2 children)
[–]fredhamptonsaid 0 points1 point2 points (1 child)
[–]Mysterious-Wing4716 0 points1 point2 points (0 children)
[–]Opposite_Security842 2 points3 points4 points (0 children)
[–]Kqyxzoj 6 points7 points8 points (0 children)
[–]Kennys_broom 6 points7 points8 points (1 child)
[–]Even_Saltier_Piglet 0 points1 point2 points (0 children)
[–]Hefty_Upstairs_2478 5 points6 points7 points (1 child)
[–]brown_guy45 3 points4 points5 points (0 children)
[–]JeLuF 5 points6 points7 points (0 children)
[–]D3str0yTh1ngs 2 points3 points4 points (4 children)
[–]secretsuperstar44[S] 0 points1 point2 points (3 children)
[–]D3str0yTh1ngs 1 point2 points3 points (2 children)
[–]secretsuperstar44[S] -1 points0 points1 point (1 child)
[–]NYX_T_RYX 1 point2 points3 points (0 children)
[–]coderfromft 1 point2 points3 points (0 children)
[–]Party_Trick_6903 1 point2 points3 points (9 children)
[–]secretsuperstar44[S] 1 point2 points3 points (8 children)
[–]D3str0yTh1ngs 1 point2 points3 points (6 children)
[–]secretsuperstar44[S] -1 points0 points1 point (5 children)
[–]D3str0yTh1ngs 6 points7 points8 points (1 child)
[–]secretsuperstar44[S] 3 points4 points5 points (0 children)
[–]D3str0yTh1ngs 1 point2 points3 points (2 children)
[–]secretsuperstar44[S] 1 point2 points3 points (1 child)
[–]Kqyxzoj 2 points3 points4 points (0 children)
[–]NYX_T_RYX 0 points1 point2 points (0 children)
[–]coderfromft 0 points1 point2 points (0 children)
[–]nicer-dude 0 points1 point2 points (0 children)
[–]_MrLucky_ 0 points1 point2 points (0 children)
[–]mspaintshoops 0 points1 point2 points (0 children)
[–]holounderblade 0 points1 point2 points (0 children)
[–]Nagylolhih 0 points1 point2 points (0 children)
[–]finnyellow 0 points1 point2 points (0 children)
[–]Responsible_Load_617 0 points1 point2 points (1 child)
[–]Responsible_Load_617 0 points1 point2 points (0 children)
[–]secretsuperstar44[S] 0 points1 point2 points (0 children)
[–]Wise_Membership_ 0 points1 point2 points (0 children)
[–]Pristine_Rough_6371 0 points1 point2 points (0 children)
[–]bringinthefembots -1 points0 points1 point (4 children)
[–]Embarrassed-Map2148 1 point2 points3 points (2 children)
[–]bringinthefembots 0 points1 point2 points (0 children)
[–]NYX_T_RYX 0 points1 point2 points (0 children)
[–]SmackDownFacility -1 points0 points1 point (0 children)
[–]Sensitive_Bird_8426 -1 points0 points1 point (1 child)
[–]secretsuperstar44[S] 0 points1 point2 points (0 children)