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, ['L', '5827', 'Q', 'v', '6865', 'Z', '1363', '6175', 'A', 'u', '2835', '7973', 'Y', '8529', '5841', '3915', 'B', 'j', '4657', '9595', 'Q', 'm', '9271', 'C', '2531']