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, ['4199', 'D', 'z', 'Y', '5549', 'H', '6541', '7015', '6357', 'q', '6313', '8599', 'i', 'n', '7881', '5785', 'v', '1565', 'B', 'I', 'E', 'X', 'T', 'T', 'e', '6321', '5945']