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.
6, ['E', 'H', '7929', 'O', 'D', 'p', 'e', 'f', 's', '7441', 'r', '5913', '8301', 'a', 'f', '8425', 'd', 'v', '7691', '1851', '871', '9967', 'Q', '539', 'x', 'd']