first_list = [1,2,3,4,5,6,7]

print(f"first_list is {first_list}")

print("----------------------------------------")
print(f"first_list[1:5] is {first_list[1:5]}")
print(f"first_list[2:] is {first_list[2:]}")
print(f"first_list[-2:] is {first_list[-2:]}")
print(f"first_list[20:] is {first_list[20:]}")
print(f"first_list[:] is {first_list[:]}")

print("----------------------------------------")
print(f"first_list[:4] is {first_list[:4]}")
print(f"first_list[:-2] is {first_list[:-2]}")
print(f"first_list[1:-2] is {first_list[1:-2]}")
print(f"first_list[1:4] is {first_list[1:4]}")


print("----------------------------------------")

print(f"first_list[::2] is {first_list[::2]}")
print(f"first_list[1::-1] is {first_list[1::-1]}")
print(f"first_list[5:2:-1] is {first_list[5:2:-1]}")
print(f"first_list[:2:-1] is {first_list[:2:-1]}")
print(f"first_list[:2:1] is {first_list[:2:1]}")


print("----------------------------------------")