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.
5, ['3223', 'T', 'w', 'q', '261', '9981', 'n', 'q', '1855', 'c', 'o', '5645', '5613', 'X', '5447', 'O', 'K', '967', '5095', 'F']