Code Order

Errors And Exceptions

Raising errors on purpose and catching them with try and except, running code with else and finally, putting the specific except before the general one, and using try inside loops to retry or skip bad data.

Tap a piece to move it, or drag the ⠿handle. Some pieces don't belong.

0 of 10 solved

1. Raise an error

Easyone line

Rebuild the line that raises a ValueError with the message "negative".

Your program

0 of 5 slots filled

    Tap or drag pieces here, in the order they should run.

    Pieces

    Some of these belong in no program