how to check if variable is a specific type python code example
Example: how to check if a variable in python is a specific data type
isinstance(variable_name, class_name) #eg. isinstance(age, int) will return True
isinstance(variable_name, class_name) #eg. isinstance(age, int) will return True