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 lineRebuild the line that raises a ValueError with the message "negative".
Your program
0 of 5 slots filledTap or drag pieces here, in the order they should run.