Skip to main content
Catch the ValueError from int() and keep asking for a ticket count until the answer is a whole number. Open Lab 30 in the IP Lab Portal

What you will practice

  • Catch ValueError from int()
  • Repeat with a while loop
  • Leave the loop with break

Before you start

Time

15 minutes

Where

IP Lab Portal

Module

Module 12: Exceptions

  • In the IP Lab Portal, open Lab 30 - Safe number input.
  • In class, this lab comes right after the Lesson 3 recap slide in Module 12 core material.