Say I have a list of numbers. How would I do to check that every item in the list is an int? I have searched around, but haven\'t been able to find anything on this. >
In [1]: a = [1,2,3] In [2]: all(type(item)==int for item in a) Out[2]: True