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, ['6547', 'B', 'V', '8829', '8157', '9279', '6271', 'G', 'P', '5193', 'H', 'f', 'C', '5343', '6795', '8157', '8035', 'Y', 'w', 'z', '6389', '5973', 'R']