Sample output when entering an invalid number for the first block.
Python comes with a built-in module for logging.
Let’s say you’re writing a script to calculate the square and cube of a number.
Suppose you’ve got a chunk of code that calculates and prints the area and perimeter of a rectangle given its length and width.