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.
2, ['R', '9155', '7387', 'i', '7377', '2551', '8341', 'P', 'O', 'H', '4869', '4761', '1249', '1419', '1515', 'j', 'x', '3743', 'I', 'n', '5865', '2117', 'H', 'V', '8103', 'f', '7961', '5779', 'E']