← Quiz: Python Introduction: all 15 questions
Quiz: Python Introduction · Question 15 of 15
An error message has several lines. Which line should you read first?
An error message has several lines. Which line should you read first?
- A.The first line
- B.The line with the file name
- C.The last line, which names the error and what went wrong
- D.None; error messages cannot be read
Answer & explanation
Correct answer: The last line, which names the error and what went wrong
The last line shows the error type (such as NameError) and the line above it shows where it happened.
Can you get the rest right without peeking?
Take the timed Quiz: Python Introduction quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →