Skip to content

Glossary: Algorithms Beyond the Basics

try / except

Also written: try, except, ValueError

Python's way to catch an error so the program can print a clear message instead of crashing. The roast-schedule main block catches the `ValueError` raised for a cycle.

Where the book teaches it

Related terms

Cycle