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, ['J', 'V', 'j', '3207', 'U', '5905', '8793', 'h', '8673', 'Y', 'e', 'M', 'j', 'g', '3573', '4025', '5555', '2079', 'x', '8959', '691', '1957', 'd', 'g', 'N']