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, ['m', '5809', '3693', 'h', 'w', 'o', '2933', 'B', '3753', '6631', 's', '8961', 'X', '8541', '2177', '6199', 'm', '2215', 'j', 'Q', '7003', 'a', 'K', '1477', 'h', '2227', '7583']