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, ['H', 'O', '4557', 'B', '4821', '2009', '3339', '1679', 'o', 'n', '1699', 'V', '5705', 'v', 'w', '2953', 'q', '7063', 'a', 'T', 'Q', '3605', 'p', '4099', 'J']