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