+ 1

I need help in python programming

Python statement doesn't end with semi-colon so, How python identify a statement

9th May 2021, 11:54 PM
Nuhas
3 Respuestas
+ 3
It treat new line as a new statement and instead of curly braces it use indention
10th May 2021, 12:05 AM
Ayush Kumar
Ayush Kumar - avatar
+ 2
you can use semi-colons in python if you like , but it's not necessary like other languages . because python use indentation
10th May 2021, 12:23 AM
Med Amine Fh
Med Amine Fh - avatar
+ 2
A semicolon in Python denotes separation, rather than termination. It allows you to write multiple statements on the same line. This syntax also makes it legal to put a semicolon at the end of a single statement. So, it’s actually two statements where the second one is empty. Input: print('I') print('like') print('to help') Output: I like to help #Or_____ print('I');print('like');print('to help') I like to help __________ Check out this link for further explanation: https://www.askpython.com/python/examples/semicolon-in-python#:~:text=A%20semicolon%20in%20Python%20denotes,the%20second%20one%20is%20empty.
11th May 2021, 7:09 PM
Endalk
Endalk - avatar