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.
10, ['y', 'j', '3855', 'X', '893', 'W', '9583', '3943', '6543', 'z', 'm', 'Z', '4865', 'w', '7927', '1123', 'A', 'S', '9653', 'H', '303']