There are more general ways of doing this, but they are also more complex and involve concepts we have not yet covered. For now, the type() function is enough for our needs.
Type of x Test for type of x integer value type(x) == int floating-point value type(x) == float list type(x) == list dictionary type(x) == dict tuple type(x) == tuple