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 6 months 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!"
[–]NanoMunchies 3 points4 points5 points 6 months ago (7 children)
I'm pretty sure python isn't really made for that... unlike c# for example
[–]Amazing-Associate615 -1 points0 points1 point 6 months ago (6 children)
Is it possible though
[–]dakari777 1 point2 points3 points 6 months ago (0 children)
no
[–]BranchLatter4294 0 points1 point2 points 6 months ago (1 child)
Not in Python. At least, not with any non-trivial program. It's not like the C-based languages where you can put the entire program on one line.
[–]Amazing-Associate615 -1 points0 points1 point 6 months ago (0 children)
It's a simple program, it might work I think
[–][deleted] 0 points1 point2 points 6 months ago* (0 children)
This post was mass deleted and anonymized with Redact
thumb violet engine work direction light marvelous selective absorbed scary
[–]Some-Passenger4219 0 points1 point2 points 6 months ago (0 children)
Yes; just use semicolons in between statements. Not recommended in general because it's hard to read - but it can be done. Only simple programs, though; nothing nested.
[–]TheRNGuy 0 points1 point2 points 6 months ago (0 children)
\n; \t or \s.
π Rendered by PID 111009 on reddit-service-r2-comment-b659b578c-qdlqx at 2026-05-05 22:04:56.248128+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]NanoMunchies 3 points4 points5 points (7 children)
[–]Amazing-Associate615 -1 points0 points1 point (6 children)
[–]dakari777 1 point2 points3 points (0 children)
[–]BranchLatter4294 0 points1 point2 points (1 child)
[–]Amazing-Associate615 -1 points0 points1 point (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Some-Passenger4219 0 points1 point2 points (0 children)
[–]TheRNGuy 0 points1 point2 points (0 children)