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.
9, ['6655', '5347', '9831', '2143', '2365', '4365', 'K', 'b', '3237', '9343', 'i', 'S', 'y', 'h', 'h', '3973', 'e', '521', 'a', '5589', '4293', '5421', '7919', 'a', 'H', 'G', '8145']