In python do we need semicolon to end our program statements? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

In python do we need semicolon to end our program statements?

8th Jun 2019, 12:37 PM
Riya Khajuria
Riya Khajuria - avatar
2 Answers
+ 5
nope, no semicolon worries, but I think it will work fine even if you use it, am not sure about that though
8th Jun 2019, 12:47 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 4
You only need to use them when you write two or more statements in one line. And you can but shouldn't use them in other cases.
8th Jun 2019, 1:13 PM
HonFu
HonFu - avatar