Inactive Tutor answered 04/19/19
Tutor
New to Wyzant
a = 1
print(type(a)) # <class 'int'>
By using the type function in Python you can find out the type of a variable. This extends to floats, booleans, functions, classes etc.