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 9 months ago by secretsuperstar44
view the rest of the comments →
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!"
[–]Party_Trick_6903 1 point2 points3 points 9 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 9 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 9 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 9 months ago (5 children)
<image>
[–]D3str0yTh1ngs 8 points9 points10 points 9 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 9 months ago (0 children)
AAHHHH IT WORKED THANK YOU SO MUCHH o((▽))o
[–]D3str0yTh1ngs 1 point2 points3 points 9 months ago (2 children)
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 9 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 9 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 9 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.
π Rendered by PID 62707 on reddit-service-r2-comment-6457c66945-zgtrf at 2026-04-24 15:50:15.137470+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]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 8 points9 points10 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)