how to check the class of an variable in python code example Example: check type of variable in python str = "Hello" type(str)