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.
9, ['7593', 'x', '2157', '3141', '6475', '7411', 'z', 'X', 'Y', 'O', '4103', '1929', 'h', '5543', 'y', '7113', '939', 'K', '791', 'A', 'W', '9327']