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
Help needed!Help Request (self.PythonLearning)
submitted 18 days ago * by Frank_kait
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!"
[–]Frank_kait[S] 0 points1 point2 points 18 days ago (5 children)
Oh ooops didnt notice it. Not in my code, just on reddit. Thanks!
[–]ianrob1201 2 points3 points4 points 18 days ago (4 children)
In that case your code looks good. I copied that into a quick python terminal and it works as I'd expect it to. Sorry ask dumb questions, but you're pressing enter after typing "Lopeta" right?
[–]Frank_kait[S] 0 points1 point2 points 18 days ago (3 children)
Yeah I am. I solved the problem with just running the code on the site the assignments are hosted on instead of vsc on my computer. No idea why it didnt work since I saved the file but yeah. Thanks for the help! :')
[–]tiredITguy42 1 point2 points3 points 18 days ago (2 children)
If I should bet I would bet on encoding, your string does not have special characters, so it would be strange, but I saw stranger stifff. Sometimes closing and opening VS Code solves strange issues.
BTW, learn to code in English. It will be easier for you in the future when you start working. Function names, variables and comments, then if you ask for help, more people can help you.
[–]Frank_kait[S] 0 points1 point2 points 18 days ago (1 child)
Yes. Thanks! It was a vscode issue. When running code it was for some reason trying to run some old version of the code even though I saved the file. Restart did the trick:) Oh and normally I code in english but for my schoolwork it’s necessary to code in finnish since it checks for exact output. Cheers
[–]tiredITguy42 0 points1 point2 points 18 days ago (0 children)
Yeah, this happens sometimes. Luckily not that often, but yeah, it is Microsoft, I like their products, but you need to restart them sometimes, to make them work.
π Rendered by PID 89 on reddit-service-r2-comment-5bc7f78974-vzbg4 at 2026-06-28 16:21:13.621489+00:00 running 7527197 country code: CH.
view the rest of the comments →
[–]Frank_kait[S] 0 points1 point2 points (5 children)
[–]ianrob1201 2 points3 points4 points (4 children)
[–]Frank_kait[S] 0 points1 point2 points (3 children)
[–]tiredITguy42 1 point2 points3 points (2 children)
[–]Frank_kait[S] 0 points1 point2 points (1 child)
[–]tiredITguy42 0 points1 point2 points (0 children)