Yeah, in python it's not mandatory to end a statement with semi-colon. But some people uses it because it also have a use in python.
Use of ';' in python
In python also Semi-colon is used to end a statement but what it allows is that you can continue to write the next statement in the same line.
Means if you use a ; the you don't have to change to new line you can just start with new sentence.
something like this
if this_is_bad_code: rewrite_code(); make_it_more_readable();
source: python.org
Top comments (2)
You can do that, but
:)
Correct Ben, Python page also mentioned this in docs