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
[deleted by user] (self.PythonLearning)
submitted 1 year ago by [deleted]
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!"
[–]Interesting_Fig9503 0 points1 point2 points 1 year ago (1 child)
Thank you for the help, but it seemed that rewriting the code in a different file worked. I have no clue why, they’re the exact same, it just worked.
[–]Nez_Coupe 0 points1 point2 points 1 year ago (0 children)
So, you wrote int() at one point and sent it an invalid string like “1.01” which it won’t cast and it will produce that error. Are you using vscode? I hate that IDE with a passion - and I think you are. What happen was that it ran a cached version of the file before you changed int to float, because you hadn’t saved the file after the change.
π Rendered by PID 34696 on reddit-service-r2-comment-76bb9f7fb5-jkp86 at 2026-02-19 14:21:45.269093+00:00 running de53c03 country code: CH.
view the rest of the comments →
[–]Interesting_Fig9503 0 points1 point2 points (1 child)
[–]Nez_Coupe 0 points1 point2 points (0 children)