連続して並んでいる文字を連結する >>> 'Py' 'thon' 'Python' 負のindexを指定 >>> word = 'Python' >>> word[-1] # last character 'n' >>> word[-2] # second-last character 'o' >>> word[-6] 'P' スライス >>> word[:2] # character from the beginning to position 2 (excluded) 'Py' >>> word[4:] # characters from