Chapter 3

From nltkbook
Jump to: navigation, search

1.

s = 'colorless'
s[:4] + 'u' + s[4:]

2. (for example)

'running'[:-4]