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.
8, ['2091', '131', '7879', '1583', 'z', 's', 'g', 'z', '6519', '2357', '2593', 'b', 'w', '9435', 'z', '7117', 'c', '2381', 'W', 'Q', '1299', '2419', 'Y', 'x', '9089', '2811', 'n', 'P', 'c', 'T']