Statements
A program is simply a list of instructions for a computer to carry out. Each of those instructions is known as a statement.
A Python statement normally stops where its line stops, so there is no need for the semicolon (;) that many other languages require.
Example
Output: complete Python program
print("Python is fun!")
Many Statements
A typical Python program is made of many statements. Python runs them one at a time, from first to last, following the order you wrote them in.
Example
Output: complete Python program
print("Hello World!")
print("Have a good day.")
print("Learning Python is fun!")
Semicolons (Optional, Rarely Used)
Python doesn't require semicolons. You may use ; to place several statements on one line, but few people do, since the result is hard to read.
Note: Two statements on one line need a separator (a newline or ;) between them, or Python reports an error. The recommended habit is one statement per line.
Semicolons
Output: complete Python program
print("Hello"); print("How are you?"); print("Bye bye!")
No separator error
Here the separator between the two statements is missing, which causes an error:
Output: complete Python program
print("Python is fun!") print("Really!")