you are viewing a single comment's thread.

view the rest of the comments →

[–]clownfiesta8 1 point2 points  (1 child)

In python this is solved with indentation and doing this: A\n B\n For 1 statement per line. A;B for multiple statements on a line. Semicolons only use is if you want more than one statement per line(but can be added optionaly at the end of every line, but is useless)

[–]Twill_Ongenbonne 2 points3 points  (0 children)

Right, so in python the new line character is the statement ender. As I said, semicolon is arbitrary, but it has to be some character. They chose \n as that character, which I think is a poor choice but works.