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, ['r', 'B', '4003', 'I', 'M', 'f', '5321', 'G', 'Z', 'z', '3463', '6383', 'Q', '5901', 'o', 'F', 'w', 'c', 'd', '9927', '5813', '1851', 'q']