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.
1, ['T', '3199', 'P', '7381', '9477', 'x', '2507', '5083', '5437', '5693', '5687', 'z', '6307', '6567', 'D', 'g', '9179', '849', 'X', 'k', '1837', '2721']