In this task, you are given inputs i and A, where i is an integer and A is a list. You need to list all the elements of A preceding the last i elements. i will always have a value less than the length of A.
6, ['2151', '4171', '8875', '7821', '5093', '6219', 'c', '7875', '3627', '2231', '463', 'T', 'K', 'm', 'P', 'F', 'u', '4817', '6821', '8717', '8337', 'f', '9923', '4421', 'A']