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, ['8405', 'i', 'v', 'W', '5995', 'I', '4903', '3851', 'M', 'D', '493', '8255', '823', '8803', '3765', '4599', '3889', 's', 'e', '7361', '8213', 'g', '307', '4977', 'd', 'X', '3803', 'c', 'E', '6821']