The edureka blog really helped me a lot, there was this one question Interviewer asked me but I was not sure about it as its always a confusion as what is the correct approach to get this answer right. Interviewer was a nice person and he helped me with the correct answer. The question goes as follows:-
Explain how Python does Compile-time and Run-time code checking?
Python performs some amount of compile-time checking, but most of the checks such as type, name, etc are postponed until code execution. Consequently, if the Python code references a user -defined function that does not exist, the code will compile successfully. In fact, the code will fail with an exception only when the code execution path references the function which does not exists.
If it requires further improvements, suggestions are appreciated.
Hope this helps everyone.