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.
5, ['5485', '8029', 'M', 'P', 'u', 'J', '6151', '6963', 'P', '7069', 'w', '137', '593', '1675', 'k', '2587', 'd', '2973', '2241', '1069', 'A', '1663', '4717', 'l', '3855', '3003', 'f', 'm']