book = "The Hitchhiker's guide to the galaxy"
# variable convert into list
booklist = list(book)

print(booklist[0:3])

print(''.join(booklist[0:3]))
print(''.join(booklist[-6:]))

ss = "Sammy Shark!"
ss = list(ss)
print(ss[-6:-1])
