how to check if a variable in python is a specific data type 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