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