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, ['4613', 'D', '4211', 'u', '5831', '1425', 'I', '4287', '2059', '663', 'V', 'K', '367', '2847', '6899', '7841', '6687', '8763', '4155']