結果 : check if list or string python