pythonのお勉強その3 tuple
タプルは初期化後に変更不可なコレクション
()で初期化を行う
>>> data = ("let", "it", "ride",) >>> print data ('let', 'it', 'ride') >>> print data[1] it >>> data[1] = "is" Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'tuple' object does not support item assignment >>>