3 ms·
Any program can be called a "one liner" if you just strip newlines and don't limit the line length.
by pak 15y ago
Any program can be called a "one liner" if you just strip newlines and don't limit the line length.
- gliptic 15y agoNot in Python.
- steve-howard 15y agoIt's generally accepted that a semicolon (in most languages) means two lines no matter how the spacing goes. In Python, it's particularly tricky to have a complex program evaluate to one statement because of limitations like no assignments in expressions. It's true, though, that this is basically the same as writing Lisp in Python.
- deleted 15y ago[deleted]