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, ['3623', 'S', 'm', 'o', 'E', 't', '7907', '7389', 'n', '267', '9451', '2761', '6613', '2281', '705', 'U', '5013', 'w', '4607', '6397', '5321', 'K', 'j', '3449', 'l', '1773', '8661', 'P']