Python Interview Questions Tutorial
Python Tricky Interview Questions
Q. What will be the output of below code? Would it give error?
print('Hello World') ; print('Hello again.')
A. This will not give error. In python using semicolon is allowed and this way people can write two statements in one line. But its very rare. Python will treat it as two print statements.