Run
obj = 4 obj_type = type(obj) if obj_type is int: print('Object is an integer.') else: print('Object is not an integer.')
Output