# -*- coding: utf-8 -*- # list.py ... リストの使い方 # 初期値をリストで与えるので、意味のあるプログラムではないが。 words = [ "abc", "ghi", "xyz" ] x = [] # 空のリストを作る for i in range(3): x.append(words[i]) # 1 番目に "def" を挿入。 x.insert(1, "def") for word in x: print word