#!/usr/bin/python # s[i:j] is from index i to j-1 # ommission is the beginning or end of the string s1 = "Box Car" print "x" print s1[2] print "x C" print s1[2:5] print "Bo" print s1[:2] print "ar" print s1[5:] s2 = "new " + s1 print "new Box Car" print s2