error handling — when ai's code crashes mid-flight2 / 9
catching the right error — not 'anything that goes wrong'
Read the code. items[10] on a three-element list raises IndexError.
Three except clauses are stacked. Which one prints?
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _