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

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.



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

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

Search: