Python2.5のリスト

感想おまちしてます!

print []    
print [0, 1, 2, 3]
print [0, [1, 2]]

list = [0, 1, 2, 3, [4, 5]]
print list[2]
print list[4][0]
print list[1:3]
print len(list)
print list + list
print list * 2

list = [0, 1, 2, 3]

list.append(4)
print list

実行結果

[]
[0, 1, 2, 3]
[0, [1, 2]]
2
4
[1, 2]
5
[0, 1, 2, 3, [4, 5], 0, 1, 2, 3, [4, 5]]
[0, 1, 2, 3, [4, 5], 0, 1, 2, 3, [4, 5]]
[0, 1, 2, 3, 4]