python 3, check if value of string variable in list code example Example: how to check the type of a variable in python print(type(x))