how to check if a variable is an integer or a float in python code example Example: py test if is float check_float = isinstance(25.9, float)