check variable from given type code example
Example 1: print variable type python
v = 10
type(v)
# <type 'int'>
Example 2: how to check if a variable in python is a specific data type
isinstance(variable_name, class_name) #eg. isinstance(age, int) will return True