3 ответов
+ 2
Short answer it is Not necessary. However, Semicolons can be used to delimit statements if you putting multiple statements in the same line.
eg:
x = 3; print(x)
+ 1
Oh thanks
+ 1
It is not necessary.Infact python was created to eliminate all the unnecessary stuff like semicolons ,braces to make the code readable and clearer.