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