Python vs. C++ - Semicolons
Semicolons are optional in Python. Instead, the new line (\n
) marks the end of a statement, since it’s better to have one statement per line anyway! It also declutters the code a bit.
Of course, you are welcome to keep the semicolons if you prefer, especially if you plan to program in C++ at the same time as Python!