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.
6, ['W', '4939', '5943', 'L', '6707', '6359', 'F', 's', '3447', 'b', 'E', '4101', '637', 'x', '363', 'G', 'H', 'f', '6933', 'g', 'O', 'e', '7507', 'X']