should we need to use semicolo in python🤔 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

should we need to use semicolo in python🤔

no need know

23rd Dec 2020, 12:53 PM
Lisa Sanal
Lisa Sanal - avatar
3 Answers
+ 2
Python does not require semi-colons to terminate statements. 
23rd Dec 2020, 12:54 PM
ㅤㅤㅤ
+ 1
kk tkuu
23rd Dec 2020, 12:54 PM
Lisa Sanal
Lisa Sanal - avatar
+ 1
We are not required to use semicolons in python, since command termination is a newline character. But if we really need it, we can do it like this: A common example: print ('test') print ('lol') Example with semicolon: print ('test'); print ('lol')
23rd Dec 2020, 1:27 PM
Иван Чикyнов
Иван Чикyнов - avatar