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.
10, ['4269', 'i', '6409', '6509', 'w', '2973', 'o', '9715', 'M', '9321', '1607', '8599', '9233', 'h', '2493', 'r', 'Z', '8779', 'm', '463', 'R', '1029', '7115', 's', 'd', 'a', '6979', '3213', 'a']