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.
8, ['6311', '641', '5753', '1663', '421', 'C', '7475', '621', 'Z', '1811', '6759', '9151', 'Q', '3705', 'I', 'K', 'g', 'n', '5935', 'g', '2425', 'g', '5591', '5151', 'n', '7065', 'E', '7457']