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, ['H', '6389', 'K', 'J', 'p', 'C', '4473', '6347', 'l', '5855', '1881', 'v', '4253', '2945', 'i', '6541', '2769', '8697', '4751', 'y', 'f', '7769', '4907', 'E', '2739', 'S']