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