type(object)
>>> test_data = [1, 2, 3] >>> type(test_data) <type 'list'> >>>
isinstance(object, class-or-type-or-tuple)
>>> test_data = 123 >>> isinstance(test_data, (int, str)) True