Design a logical expression equivalent to the following statement: x is a list of three or five elements, the second element of which is
Design a logical expression equivalent to the following statement:
x is a list of three or five elements, the second element of which is
x
Python 2
import types x = False print(type(x) == types.BooleanType) # True
Python 3
# No need to import types module x = False print(type(x) == bool) # True