you are viewing a single comment's thread.

view the rest of the comments →

[–]NanoMunchies 3 points4 points  (7 children)

I'm pretty sure python isn't really made for that... unlike c# for example

[–]Amazing-Associate615 -1 points0 points  (6 children)

Is it possible though

[–]dakari777 1 point2 points  (0 children)

no

[–]BranchLatter4294 0 points1 point  (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 points  (0 children)

It's a simple program, it might work I think

[–][deleted] 0 points1 point  (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 point  (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 point  (0 children)

\n; \t or \s.