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, ['D', '6693', '825', '8803', '5203', '6491', '1803', '2365', '5581', '5271', '3095', '2353', 'K', '2845', '9255', 'K', 'X', 'l', '6321', '2811', 'T', 'v', '5243']