how to find out what data type a variable is in python code example Example: check type of variable in python str = "Hello" type(str)