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.
1, ['k', 'K', 'A', '863', 'o', '4983', 'X', 'D', 'w', 'e', 'm', '9457', '3495', '5455', '377', 'v', '4113', '6061', '5447', '2299', 's', '683', 'n', '2689']