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, ['E', '7363', 'X', '7743', '8777', '2163', '6995', 'b', 'Q', 'k', '3041', 'v', '8685', 'o', 'V', '5401', '8187', '6495', '9233', 'h', 'P', 'p', '9821', '4807', 'H']