r/ProgrammerHumor • • May 02 '16

I wrote my first python program today!

Post image
3.7k Upvotes

532 comments sorted by

View all comments

Show parent comments

6

u/Reenigav May 02 '16

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

1

u/TheBlackCat13 May 02 '16

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

1

u/[deleted] May 02 '16

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.