Cómo verificar el tipo de variable en Python
print(type(x))
Fine Finch
print(type(x))
>>> i = 123
>>> type(i)
<type 'int'>
>>> type(i) is int
True
>>> i = 123.456
>>> type(i)
<type 'float'>
>>> type(i) is float
True
print type(variable_name)