QUESTION:
Write a function pale(n) that takes a positive
integer n as input, where n has four
digits. The function determines if n is
a pale number. A number is not pale if
and only if it has at least two consecutive digits
each equal to 3, or if its last digit is divisible by 4.
The function should test if n is pale
and return True if n is pale,
and False otherwise.
NOTE:
In this function, you are not allowed to use strings nor
are you allowed to use branching statements such as if
statements or loops to solve this problem.
OUTPUT SHOULD LOOK LIKE THIS:
>>> # testing Question 3
>>>
>>> pale(1128)
False
>>> pale(3443)
True
>>> pale(3351)
False
>>> pale(3333)
False
>>> pale(4331)
False
>>> pale(3423)
True
>>> pale(4533)
False
>>>