#!/usr/bin/python a = "teststring" b = a[:3] c = a[1:4] d = a[0:4] e = a[4:len(a)] f = a[4:] print a print b print c print d print e print f