examples/strings/string_slice.py
from __future__ import print_function

x = "Hello World"

a = x[0]
print(a)       #  H

b = x[1:3]
print(b)       #  el
print(x[2:])   #  llo World
print(x[:2])   #  He

start = 1
end = 4
print( x[start:end] ) # ell