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