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, ['c', 'P', 'U', 'U', 'h', 'b', 'V', 'B', '3615', 'o', 'Y', '7211', '3029', '247', '8071', 'X', '2533', 'B', 'z', '141', '9223', '841', '379', '4815', 'K', 'L', 'E', 'L', '9447', 'x']