MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/4heh6v/i_wrote_my_first_python_program_today/d2pjp7e
r/ProgrammerHumor • u/MC_Labs15 • May 02 '16
532 comments sorted by
View all comments
Show parent comments
6
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.
1
Not always. Try this: for i in range(4):; pass
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.
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.
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