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, ['M', '85', '7149', '4681', '2813', '8637', 'd', 'I', '6413', '2359', 'X', '8601', '9589', 'Q', '4347', '8663', 'a', '7003', '5397', '6961', '5819', '9269', '9699', '6311', 'H', '2665', 'f']