# 4-10. Slices: Using one of the programs you wrote in this chapter, add several
# lines to the end of the program that do the following:
#   Print the message, The first three items in the list are:. Then use a slice to
# print the first three items from that program’s list.
animals = ['cat', 'dog', 'fish', 'snake', 'bear', 'shark']

message = "The first three items in the list are: " + str(animals[:3])
print(message)

# Print the message, Three items from the middle of the list are:. Use a slice
# to print three items from the middle of the list.
message = "Three items from the middle of the list are: " + str(animals[1:4])
print(message)

# Print the message, The last three items in the list are:. Use a slice to print
# the last three items in the list.
message = "The last three items in the list are: " + str(animals[-3:])
print(message)