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.
10, ['R', '715', 'n', '1723', 'P', 'R', '5521', '7225', 'a', '3959', 'y', 'e', '8873', '6403', 'E', '3159', 'e', '9919', 'V', 'v', 'q', 'd', 'U', '3573', '9787', 'Q', 'j']