Dealing with sequences

Sequences are numbered from 0 upward so you can access them like this

>>> myString = "This is a string"
>>> string[0]
'T'
>>> string[0:4]
'This'
>>>

Tags: