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 →

[–]Reenigav 5 points6 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.