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. >
>>> my_list = [1, 2, 3.25] >>> all(isinstance(item, int) for item in my_list) False >>> other_list = range(3) >>> all(isinstance(item, int) for item in other_list) True >>>