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, ['7429', 'j', 'L', 'k', '5561', '1065', 'T', '87', '5719', 'j', 'd', 'v', '835', '4055', 'N', 'z', 'P', '1821', '4645', '6375', 'o', '6481', '7383', 'a', '8747']