This is straight out of a question I had in a school exam. The question goes:
In the Python Programming Language, syntax error is detected by (a) at (b). (a) and (b) are:
- (a): interpreter, (b): compile time
- (a): interpreter (b): runtime
Syntax errors are found out before runtime, right? So the answer should be 1? My teacher's reasoning, I believe, is that Python is an 'interpreted language', so, 1 becomes wrong. But, afaik, Python is compiled to C after which it is run.
I am unable to find any relevant documentation, some pointing in the right direction will be appreciated.