I am using Python 2.7.
I have been experimenting with the interpreter and found out the following unusual thing. I wrote the following code and it's working:
def func():
a = 5 ;
print a
When I call this function, it gives the required output in the interpreter, not giving any syntax error, despite using the semicolon. Here is the screenshot:
Why is it not giving a syntax error?