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, ['T', '2977', 'C', '4859', 'p', 'z', '4903', 'h', '8179', 'H', 'F', '1705', '2977', 'C', '1527', '1281', 'f', 'G', '4463', '4665', '3077', '3389', '2609', 'J', 'p', 'Z', '1593', '2345', 'e']