IN Listing 48-2, you use the is keyword along with the OR logical operator (I I) to test to see whether p is a Person or an Employee.
The function prints an employee or person profile or an error message if p is neither of these types. Here is the output that Listing 48-2 would produce: