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