Topic Practice · Intermediate
Exceptions problems
50 problems: 22 Easy, 18 Medium, 10 Hard.
✓1. Safe Number
5 test casesEasy✓2. Safe Division
4 test casesEasy✓3. Safe Index
4 test casesEasy✓4. Safe Lookup
4 test casesEasy✓5. Name the Error
4 test casesEasy✓6. Show the Error Message
4 test casesEasy✓7. No Such Method
4 test casesEasy✓8. Raise for a Bad Month
4 test casesEasy✓9. Nested try Blocks
4 test casesEasy✓10. Age Next Year, Safely
4 test casesEasy✓11. Average of Nothing
4 test casesEasy✓12. Count Every Attempt
4 test casesEasy✓13. First Word or Empty
4 test casesEasy✓14. Grade Point Lookup
4 test casesEasy✓15. Only If It Worked
4 test casesEasy✓16. Raise for an Empty Name
4 test casesEasy✓17. Convert Every Item
4 test casesEasy✓18. Count the Bad Lines
4 test casesEasy✓19. Decimal or Not
4 test casesEasy✓20. Adding Text and a Number
4 test casesEasy✓21. Add Pairs Safely
4 test casesEasy✓22. assert a Rule
4 test casesEasy✓23. else and finally
4 test casesMedium✓24. Sum the Valid Numbers
4 test casesMedium✓25. Raise an Error
4 test casesMedium✓26. Keep Asking
4 test casesMedium✓27. Age Validator
5 test casesMedium✓28. Custom Exception
4 test casesMedium✓29. Several Except Blocks
5 test casesMedium✓30. Parse key=value
4 test casesMedium✓31. Mixed Types
4 test casesMedium✓32. One except for Two Errors
4 test casesMedium✓33. Custom Error With Data
4 test casesMedium✓34. Raise From Another Error
4 test casesMedium✓35. Which Errors Happened?
4 test casesMedium✓36. Insufficient Funds
4 test casesMedium✓37. Report Bad Lines
4 test casesMedium✓38. Raise a TypeError
4 test casesMedium✓39. Valid Dates Only
4 test casesMedium✓40. Average of the Good Values
4 test casesMedium✓41. Assertions
4 test casesHard✓42. Convert a Table
4 test casesHard✓43. Log and Re-raise
4 test casesHard✓44. Order of Clean-up
4 test casesHard✓45. Validate a Grid
4 test casesHard✓46. Read Until the End
4 test casesHard✓47. Calculator That Never Crashes
4 test casesHard✓48. Three Tries Only
4 test casesHard✓49. Calculator With Clear Errors
4 test casesHard✓50. A Family of Validation Errors
4 test casesHard
5 test casesEasy✓2. Safe Division
4 test casesEasy✓3. Safe Index
4 test casesEasy✓4. Safe Lookup
4 test casesEasy✓5. Name the Error
4 test casesEasy✓6. Show the Error Message
4 test casesEasy✓7. No Such Method
4 test casesEasy✓8. Raise for a Bad Month
4 test casesEasy✓9. Nested try Blocks
4 test casesEasy✓10. Age Next Year, Safely
4 test casesEasy✓11. Average of Nothing
4 test casesEasy✓12. Count Every Attempt
4 test casesEasy✓13. First Word or Empty
4 test casesEasy✓14. Grade Point Lookup
4 test casesEasy✓15. Only If It Worked
4 test casesEasy✓16. Raise for an Empty Name
4 test casesEasy✓17. Convert Every Item
4 test casesEasy✓18. Count the Bad Lines
4 test casesEasy✓19. Decimal or Not
4 test casesEasy✓20. Adding Text and a Number
4 test casesEasy✓21. Add Pairs Safely
4 test casesEasy✓22. assert a Rule
4 test casesEasy✓23. else and finally
4 test casesMedium✓24. Sum the Valid Numbers
4 test casesMedium✓25. Raise an Error
4 test casesMedium✓26. Keep Asking
4 test casesMedium✓27. Age Validator
5 test casesMedium✓28. Custom Exception
4 test casesMedium✓29. Several Except Blocks
5 test casesMedium✓30. Parse key=value
4 test casesMedium✓31. Mixed Types
4 test casesMedium✓32. One except for Two Errors
4 test casesMedium✓33. Custom Error With Data
4 test casesMedium✓34. Raise From Another Error
4 test casesMedium✓35. Which Errors Happened?
4 test casesMedium✓36. Insufficient Funds
4 test casesMedium✓37. Report Bad Lines
4 test casesMedium✓38. Raise a TypeError
4 test casesMedium✓39. Valid Dates Only
4 test casesMedium✓40. Average of the Good Values
4 test casesMedium✓41. Assertions
4 test casesHard✓42. Convert a Table
4 test casesHard✓43. Log and Re-raise
4 test casesHard✓44. Order of Clean-up
4 test casesHard✓45. Validate a Grid
4 test casesHard✓46. Read Until the End
4 test casesHard✓47. Calculator That Never Crashes
4 test casesHard✓48. Three Tries Only
4 test casesHard✓49. Calculator With Clear Errors
4 test casesHard✓50. A Family of Validation Errors
4 test casesHard