>>> rock = 'anthracite' >>> rock[9] 'e' >>> rock[0:3] 'ant' >>> rock[-5:] 'acite' >>> for character in rock[:5]: ... print character ... a n t h r