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.
5, ['h', 'w', 'K', 'H', '8039', '9033', 'h', '1223', 'B', 'Z', '941', '5787', '7847', '8413', 'Y', '6839', 'u', '3311', '2093', 'v', 'u', '6467', 'V', '1275', 'p', 'H', 'x', '1851', '3583']