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, ['Q', '5333', '3137', '5989', '6329', 'H', 'O', 'a', '8927', 'C', 'f', 'z', '655', '5215', '6407', '1587', 'K', '7319', 'p', '9463', '1731', 'Q']