strip elements in a list to get rid of last 2 elements code example
Example: how to remove last 2 elements from list in python
l = list(range(1,5))
l = test_list[: len(test_list) - 2]
l = list(range(1,5))
l = test_list[: len(test_list) - 2]