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
ValueErrorfromint() - Repeat with a
whileloop - 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.