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.
4, ['8443', '8485', '5667', 'i', 's', 'E', 'n', '2905', '1', 'q', '6417', '4567', '6103', '4631', '4241', 'P', '27', '2779', 'm', '247', 'z', 'U', '5663', 'Q', '3665']