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.
2, ['8407', '9193', 'N', '4061', '6901', '6661', '6095', 'd', '1795', 'j', 'g', '8647', 'h', '1323', '9345', 'B', 'M', '9435', 'P', '9013', '4239', '6655', 'D', 'W', 'l', '5419', '739', '6143', 'Q', 'g']