Design a logical expression equivalent to the following statement:
x
is a list of three or five elements, the second element of which is the string'Hip'
and the first of which is not a number or Boolean.
What I have:
x = ['Head', 'Hip', 10]
print x[1] is 'Hip'
My question: How do you check for whether or not it is a Boolean or a number?