>>> print("hello") and print is not defined, it would be a good thing if the editor could notify the user.

That would be awful! An editor is a tool for entering text/code/whatever - if it were...