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.
7, ['f', 'O', 'c', '5249', '3919', 'z', '4853', '1273', '8321', 's', 'E', '7449', 'J', '8959', 'm', 'S', '4169', 'r', '6341', '2183', 'l', '4201', '1307']