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.
7, ['3049', '6703', 'r', '2057', 'R', '4685', 'P', 'H', '8343', '8413', '7095', 'X', '4783', '4715', 'K', '895', '5749', '8957', 'h', 'z', '4169', 'c', 'b', 'l', '3417', 'e']