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, ['c', 'O', 'E', '9507', 'c', '6439', 'Y', '1365', '6027', '9243', '7799', '3363', 'm', 'q', '465', 'K', 'a', 'Q', '5265', 'c', 'w', '7203', '7483', 'a', 'A', '485', 'M', 'i']