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, ['U', '9061', '7799', '1201', '675', 'w', '1117', '3423', 'R', 'T', 'k', '8621', '2763', '63', 'z', '761', '6023', '7511', 'O', '7653', '1773', 'Y']