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, ['2671', '9415', '7171', 'd', '7761', 'R', 'r', 'X', 'f', '327', '6907', 'L', '4743', 'J', '4067', '8667', 'c', '9611', 'R', 'u', '8463', 'z', '1921', '799', '9793']