4
![Stack Overflow](http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png)
How about using type and set:
>>> my_list = [12,8,0,4,7,21,27,"O",29,3,"X","O","X","X"]
>>> set(map(type, my_list))
{<class 'int'>, <class 'str'>}
>>> set(map(type, my_list)) == {int, str}
True
>>> set(map(type, my_list)) == {int}
False
>>> set(map(type, my_list)) == {str}
False
>>> my_list = [...