I have the following list:
a = [1104537600, 1199145600, False, 1199145600, 1443886293, True]
and I want to split this list to two sublists such as:
[[1104537600, 1199145600,1199145600, 1443886293],[False,True]]
I am using the following which give that result:
b = [value for value in a if type(value) is int]
c = [value for value in a if type(value) is bool]
d = [b,c]
But is there a more elegant way? In one line?