in python syntax error is detected by the_______?
Answers
Answered by
4
Answer:
interpreter
Explanation:
1. Syntax errors – usually the easiest to spot, syntax errors occur when you make a typo. Not ending an if statement with the colon is an example of an syntax error, as is misspelling a Python keyword (e.g. using whille instead of while). Syntax error usually appear at compile time and are reported by the interpreter.
Answered by
0
In python, a syntax error is detected by the Interpreter.
- Python being an interpreter language interprets codes line by line.
- During the run time a syntax error can get detected in an interpreter.
- The interpreter converts a source code to a byte code while going through line by line.
- During this time it checks if there is an error in the syntax of a program.
- Thus here the correct answer is an interpreter.
#SPJ3
Similar questions