Does Python acts as compiled language in jupyter notebook?

Hey Rahul Sir
!

So in the image above error is shown which is correct. But I have written a print command above the line. Since Python Language and Python Kernel is an interpreted languages then this shouldn’t first print _ABC value and then show the variable error?

Thank You!

Hi @sarthakagg105

Over here there is a syntax error.Python will find these kinds of errors when it tries to parse your program, and exit with an error message without running anything. Thus print statement wasn’t executed.
Hope this might helps :slight_smile:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.