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, ['a', 'l', '5257', '31', '2091', '4735', '1195', 'i', '7417', 'v', '9069', '9505', 'P', 'y', 'O', '897', '4573', '9835', 's', '9281', 'R', '4921', 'V']