python check type class code example
Example 1: check type of variable in python
str = "Hello"
type(str)
Example 2: 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