結果 : how to check if a variable is string or list in python