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, ['7387', '9845', 'y', 'm', '7975', 'E', 'r', 'P', '1305', '741', '7895', 'w', '5493', '8801', '271', '8875', 'K', 'Q', '6453', 'A', '1687']