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.
2, ['2587', 'A', 'g', '2601', '5619', '2289', 'z', 'h', 'Z', '6629', 'V', 'd', '3121', '1065', 'A', '4091', '7249', '6363', 'n', '815', 'C', 'o', '5815', '8011', '3537', '9093', '2017']