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.
7, ['2851', 'w', 'B', 'u', '1505', '701', '9537', 'x', '8109', '3243', '7337', '8779', '227', '1431', 'e', '7511', 'b', '1969', '9321', 'P', 'Z', 'i', '8737', '4129', 'R', 'm', 'o']