So überprüfen Sie den Typ einer Variablen in Python
print(type(x))
Fine Finch
print(type(x))
age = 28
#To get the type us following command
print(type(age))
>>> 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)