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.
9, ['e', 'q', 'T', '5339', '3931', 'Y', 'B', 'W', '3473', '4005', '3131', 'X', 'M', '1557', 'R', '1529', 'R', 'e', '4749', '4943', 'g', '7131', '949', '1185']