Practice: Syntax Errors

« Read the chapter

Q21. Syntax versus exception

BeginnerConceptual

Explain two differences between a syntax error and an exception such as ZeroDivisionError.

Goal: Compare error kinds.

Q22. Why look at the line above

IntermediateConceptual

Why should you check the line before the one named in a syntax error report?

Goal: Find the real cause.