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, ['5187', 'k', '1213', '2883', 'X', '4787', '3947', '9083', 'v', '6899', 's', '9457', '4469', 'l', '9423', '2055', '9295', 'X', 'S', '5705', '691', 'p', 'T', 'H', '2945', '8419', 'R', 'l']