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, ['57', '3847', 'e', 'T', 'v', 'L', '8861', 'c', 'o', '9947', 'G', 'S', 'H', '6611', '3551', 'M', '6915', '8463', '7827', '8495', 'Q', 'B', '5791', 'Y']