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, ['5211', 'f', '611', '9473', '6183', '5731', 's', 'x', 'd', 'k', 'h', '7147', '699', 'k', '7265', '3901', 'G', '6983', 'n', 'a', 'R', '3665', 'Z', '7481', 'o', 'S', 'W', 'e', '243', '2601']