# https://docs.python.org/3.0/tutorial/introduction.html

word = 'somelongword'

print(word[:2])
# so

print(word[2:])
# melongword

print(word[4:8])
# long

word = 'newWord'
print(word)
# newWord

word = 'somelongword'

print('new' + word[4:])
# newlongword

print(word[-1])
# d
