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, ['N', '1241', 'Q', '8123', 'D', 'a', '5339', '6311', 'K', 'f', '7873', 'I', 'W', '8295', '113', 'e', '8737', '1915', '8267', 'O', 'n', '9003', '405', '4759', 'q', '9939']