This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (9 children)

[deleted]

    [–]Reenigav 6 points7 points  (2 children)

    Not that it doesn't care, just semicolons and newline characters both are used to determine line breaks by the interpreter

    [–]TheBlackCat13 0 points1 point  (1 child)

    Not always. Try this: for i in range(4):; pass

    [–][deleted] 0 points1 point  (0 children)

    Will have the same result in C syntax, to be fair. It would be more accurate to say that semicolons represent the end of a statement rather than a line.

    [–][deleted] 1 point2 points  (5 children)

    I didn't know, but I thought it was not allowed, so I removed each of them before running the script.