Como verificar o tipo de variável no 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)