how to compare types python 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