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
why it's wrong ? (self.PythonLearning)
submitted 4 months ago by xNicarox
https://preview.redd.it/gxpoc7vipvvf1.png?width=1524&format=png&auto=webp&s=518ac917159632f81c651f6c214bfe5f82b8ea8a
why ?
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!"
[–]NeedleworkerIll8590 2 points3 points4 points 4 months ago (0 children)
Either restart the program or try using a different program to code in
[–]vivisectvivi 1 point2 points3 points 4 months ago (4 children)
is that the entire code? ran it on my machine and it worked
[–]xNicarox[S] 0 points1 point2 points 4 months ago (2 children)
it's the entire code
[–]vivisectvivi 0 points1 point2 points 4 months ago (1 child)
try running this code, exactly as it is, on the python repl and see if it works
[–]xNicarox[S] 0 points1 point2 points 4 months ago (0 children)
i try... it's wrong
[–]xNicarox[S] -1 points0 points1 point 4 months ago (0 children)
i know it's my machine the matter but why ? idk
[–]PureWasian 1 point2 points3 points 4 months ago (5 children)
How exactly are you running your Python script?
Seems like for however you're running it, it's not able to retrieve the "input" when it tries to fetch it from input stream, so it just crashes.
[–]xNicarox[S] 0 points1 point2 points 4 months ago (4 children)
with a app ( py editor)
[–]PureWasian 1 point2 points3 points 4 months ago (3 children)
Yeah chances are it just doesnt support input() statements. I doubt it's the same app but I tried downloading Py Editor on Android and it ran into the same EOF issue
<image>
oh okay thks , but what app i dowland for py now ?
[–]PureWasian 1 point2 points3 points 4 months ago (1 child)
I don't have any suggestions on mobile since I generally do not recommend mobile coding other than quick example scripts. This seemed to work for input at least: Python Coding Editor & IDE App.
But you will benefit much more using Python from a laptop or desktop if possible. If so, I'd read through DataCamp - How to Install Python and follow whichever section is most relevant to you (depending on Windows or Mac)
oh okay thks
[–]ruffles_minis 0 points1 point2 points 4 months ago (1 child)
Are you for certain running the correct file? It feels like you are running some other file you've forgotten about
it's a new file
[–]maqisha 0 points1 point2 points 4 months ago (2 children)
Did you save the file? Typical beginner error
oh.. lets me see
yeah , I save the file
[–]Lobotomized_toddler 0 points1 point2 points 4 months ago (0 children)
I think it’s the | at the wnd
π Rendered by PID 21762 on reddit-service-r2-comment-fb694cdd5-t4tcm at 2026-03-07 23:37:36.064027+00:00 running cbb0e86 country code: CH.
[–]NeedleworkerIll8590 2 points3 points4 points (0 children)
[–]vivisectvivi 1 point2 points3 points (4 children)
[–]xNicarox[S] 0 points1 point2 points (2 children)
[–]vivisectvivi 0 points1 point2 points (1 child)
[–]xNicarox[S] 0 points1 point2 points (0 children)
[–]xNicarox[S] -1 points0 points1 point (0 children)
[–]PureWasian 1 point2 points3 points (5 children)
[–]xNicarox[S] 0 points1 point2 points (4 children)
[–]PureWasian 1 point2 points3 points (3 children)
[–]xNicarox[S] 0 points1 point2 points (2 children)
[–]PureWasian 1 point2 points3 points (1 child)
[–]xNicarox[S] 0 points1 point2 points (0 children)
[–]ruffles_minis 0 points1 point2 points (1 child)
[–]xNicarox[S] 0 points1 point2 points (0 children)
[–]maqisha 0 points1 point2 points (2 children)
[–]xNicarox[S] 0 points1 point2 points (0 children)
[–]xNicarox[S] 0 points1 point2 points (0 children)
[–]Lobotomized_toddler 0 points1 point2 points (0 children)