dude:~/pysf ben$ cat test.py a = "hello world" b = 2 c = a[b:2] print "len(a) = %d, len(c) = %d\n" % (len(a), len(c)) dude:~/pysf ben$ python test.py len(a) = 11, len(c) = 0