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, ['c', '1635', 'z', '5567', 'X', 'h', 'c', '6505', '7887', 'T', 'Q', '2859', '7869', '2215', 'A', 'w', '4277', 'a', '135', '6633', '7393', '985', '4711', 'T', 'g', '4761', '5329', 'Q', '2027']