Review: Validate then Compute

Combine raise and try/except. Validate the input with raise, then call the function inside try/except to record success or failure.
Python
Setting up Python environment...
Output