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.
10, ['9165', '7527', 'n', '6033', '9203', '7351', '1771', '2937', 'P', 'd', '8223', '9465', 'h', '1973', '6305', 'a', 'b', 's', '9351', '2433', 'r', '8771', 'J', 'A', '6877', '3001', '6491', '97', 'R']