# -*- coding: utf-8 -*-
"""
Created on Thu Nov 16 21:31:41 2017

@author: Sandbox999
"""
#this is Sandbox's Python Code

#split using indexing

name="Apple Pie"
#print(name[9]) #index is out of range error
print(name[8])
print(name[-1]) #prints the last characters

print(name[0:2]) #Upper-bound exclusive, therefore prints 'Ap'

print(name[0:1]) #prints 'A'

print(name[3:])