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, ['1073', '3711', 'Y', '9857', '5633', 'I', '2187', '9143', '641', '3243', 'F', '1721', 'x', '2379', 'E', '8213', '523', '9673', 'F', '2829', 'h', 'd']