Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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

Search: