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.
8, ['2943', '749', '4627', '9567', '4649', '137', '7553', 'L', '6581', 'u', '3701', '4061', 'Y', 'R', '2841', 'I', 'Y', '7857', '5129']