Substring extraction in Python

In Python, the slice notation is used to extract substrings:

    wine = \
        "'Chateau Bleu', too, has won many prizes; not least for its taste, and its lingering afterburn."
    print wine[:13] # 'Chateau Bleu'
    print wine[34:40] # prizes
    print wine[-20:] # lingering afterburn.

See also: Slices in Python