how to get the data type of a variable in python code example Example: print variable type python v = 10 type(v) # <type 'int'>