May 2018
Intermediate to advanced
380 pages
9h 37m
English
When a value is provided as input to the function circle_measures(), the decorator @arg_check checks to see whether the value is an integer and if it is positive. If it meets the requirements, the function is allowed to finish and the results are printed, as shown in the following screenshot:

If the argument passed to the function is negative, then an exception is raised, as shown in the following screenshot:

If the argument passed in is not an integer, an alternate exception is raised, as shown in the following screenshot: ...