vegetables = ['carrot', 'tomato', 'potato', 'corn', 'aubergine']

print("First three vegs: ")
print(vegetables[0:3])

print("Middle three vegs: ")
print(vegetables[1:4])

print("Last three vegs: ")
print(vegetables[-3:])