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.
6, ['3693', 'J', 'J', '4235', '1781', '7353', 'X', '2147', '2157', 'q', 'i', '1617', '1453', 'E', '9551', '8153', 'p', '4121', 'X', '8323', '8399', '1281', '1451']