python type comparison code example
Example: compare types in python
obj = "str"
isinstance(obj, str) # will return True
isinstance(obj, int) # will return False
obj = "str"
isinstance(obj, str) # will return True
isinstance(obj, int) # will return False