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, ['D', 'p', 'H', '3119', 'X', '7635', '3045', 'M', '6071', '8685', 'f', '6323', 'r', 'R', 'v', 'F', 'Y', 'X', 'R', '9599', 'G', 'G', 'f', 'c', 'G', 'Q', 'A', 'T', '6541']