Hacker News new | past | comments | ask | show | jobs | submit login

Which part? A new line is the same amount of data as a semi-colon.



Items that are on the same "level" of indentation, I.e. in a codeblock can have all of them prepended with the whitespace, and then separated with semi-colons.

    def func(param):
        for i in xrange(5):
            print("Inner");print("AnotherLine");print("YetAnotherLine")
From the example you see that whitespace is still necessary, but you could "group" items and not have to repeat the whitespace that forms their level of indentation.


Yes, but you can cut out some of the indentation whitespace using semicolons.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: