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, ['J', 'Q', '1071', '8691', 'W', '885', '9851', '8873', '5093', '1129', 'N', 'P', 'j', 'p', '6743', 'R', '1853', 'G', 'a', '7849', '4827', 'K', 'e', '9233', '1865', 'A', 'V']