+ 1

python semi colon

why semi colons are used in python are they also used in python 3

5th Jul 2019, 3:31 PM
I Am Anushka
2 Antworten
+ 2
You only need them if you want to write two statements in one line: print(1); print(0) If you don't do that, don't use them. Python takes your 'enter' as the end of the line, so a ; doesn't add any value.
5th Jul 2019, 4:28 PM
HonFu
HonFu - avatar