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.
10, ['n', 'w', 'T', '7945', 'L', 'V', '1295', 'R', 'y', 'S', '9723', 't', '469', '2819', 'D', 'S', 'z', 'H', '2069', 'l']