python check type code example
Example 1: if type is string python
isinstance(s, str)
Example 2: print variable type python
v = 10
type(v)
# <type 'int'>
Example 3: check type of variable in python
str = "Hello"
type(str)
isinstance(s, str)
v = 10
type(v)
# <type 'int'>
str = "Hello"
type(str)