Python in 30 Days: Day 17 Exception Handling Python uses try and except to handle errors gracefully. A graceful exit (or graceful handling)…