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, ['5097', 'c', 'f', '8629', '3365', 'U', 'a', '1939', 'O', '2977', 'e', 'P', '4363', 'O', '4513', 'H', '1405', 'K', 'f', '4271', '8241', 'e', 'c', '3711', 'F', '8353']