2006-09-12 タプル タプルは変更不可能なシーケンス型です。タプル特有の動作をまとめます。 t = () print t # => () t = (1,) print t # => (1) t = (1, 'apple') print t # => (1, 'apple') t = 1, 'apple' print t # => (1, 'apple') t[0] = 'pine' # => タプルは変更することができないのでエラー