> ## Documentation Index
> Fetch the complete documentation index at: https://python-training.ipoint-labs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Lab 30: Safe number input

> Hands-on lab · 15 min · Module 12

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](https://labs.intellectualpoint.com/labs/pcep-lab-30-safe-number-input)

## What you will practice

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

## Before you start

Time
15 minutes
*Hands-on in Python 3*

Where
IP Lab Portal
*labs.intellectualpoint.com*

Module
Module 12: Exceptions
*PCEP-30-03*

* 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](https://python-training.ipoint-labs.com/pcep/module-12/material.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.