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, ['Q', '7219', '5493', 'E', 'X', '295', 'Z', 'J', '8565', 'h', 'k', '7463', '9347', '9805', '9379', 'h', 'O', 'W', 'U', '4179', 'N', '9095', '5147', '3523', '2523', 'C']