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.
5, ['P', 'D', '755', '5101', '735', '2819', '9677', '2149', '7237', '6541', 'm', '5897', '9827', '9059', '9415', '6823', '4309', 'A', '9035', 'Y', '4417', '8343', '5265', 'y', 'd', '5243']