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, ['4973', 'b', 'S', '2949', 'h', 'U', '3957', '2877', '6361', 'E', '1079', '271', 'H', '193', '6817', '7279', 'b', '1119', 'x', '1529', 'T', '7823', 'W', 'l', '3911', 'i']