I am using python2.7. I have been experimentingn with the interpreter and found out then 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 it's not giving a syntax error