if type(var) is not type code example
Example 1: if type is string python
isinstance(s, str)
Example 2: is instance string python
isinstance(x, int)
isinstance(s, str)
isinstance(s, str)
isinstance(x, int)
isinstance(s, str)