How do you verify that the type of all elements in a list or a tuple are the same and of a certain type?
for example:
(1, 2, 3) # test for all int
Only to mention the possibility, you can avoid list comprehension with:
all(map(lambda x: isinstance(x, int), your_list))