Different errors in Python Flashcards
1
Q
What is a syntax error?
A
Relates to the structure of the code and the way it has been written.
2
Q
Give an example of a syntax error
A
print(9 (lacks closing bracket)
3
Q
what is a runtime error?
A
An error that does not happen until the program has started.
4
Q
What is a semantic error?
A
An error where the program will run, but the outcome will be different to what was expected.