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, ['7459', '9051', 'q', '7257', 'o', 'x', '2261', '7919', '1513', '4311', '2505', '1915', '9083', '3085', 'V', 'P', '4883', 'U', '2337', '5927', '5453', 'l', '2677', 'V', '9791', 'f', '9479']