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.
3, ['N', '2811', 'd', 'X', '8807', '8361', '4677', '7585', '647', 'n', '1317', 'b', '4073', '8153', 'v', 'r', 'Q', 'A', 'O', 'M', '3679', '8431', 'n', '5933', 'D', 'W', '875', 'y']