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.
4, ['2825', 'D', '5529', '1267', '9319', 'j', '2347', 'R', 't', 'Q', '6851', '2955', '519', 'U', '3861', 'O', 'Y', 'Q', 'w', '5825', '3503', '9565', '991', 'T', 'B', 'P', 'S', '6485', '6127']