Python基础 · free preview

Errors and Exceptions

To be able to read a traceback, and determine where the error took place and what type it is. To be able to describe the types of situations in which syntax errors, indentation errors, name errors, index errors, and missing file errors occur.

1. Overview

Overview

2. Long Tracebacks

Long Tracebacks

3. Reading Error Messages

Reading Error Messages

4. Better errors on newer Pythons

Better errors on newer Pythons

5. Syntax Errors

Syntax Errors

6. Tabs and Spaces

Tabs and Spaces

7. Variable Name Errors

Variable Name Errors

8. Index Errors

Index Errors

9. File Errors

File Errors

10. Identifying Syntax Errors

Identifying Syntax Errors

11. Identifying Variable Name Errors

Identifying Variable Name Errors

12. Identifying Index Errors

Identifying Index Errors

Practice this interactively

Free account · instant grading · spaced review that schedules itself.

Start this course for free