threes = list(range(0, 31, 3))

print(f"The first three items in the list are {threes[:3]}")
print(f"Three items from the middle of the list are {threes[3:6]}")
print(f"The last three items in the list are {threes[-3:]}")

# for number in threes:
#     print(number)
