Skip to main content
Make a calculator survive bad numbers, division by zero and huge answers, with except branches in the right order, and keep it running until you quit. Open Lab 31 in the IP Lab Portal

What you will practice

  • Handle several exception types
  • Order except branches
  • Keep the program running after an error

Before you start

Time

25 minutes

Where

IP Lab Portal

Module

Module 12: Exceptions

  • In the IP Lab Portal, open Lab 31 - Robust calculator.
  • In class, this lab comes right after the Lesson 4 recap slide in Module 12 core material.