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.
8, ['2955', '1313', 'M', '6365', 'v', 'H', '1115', 'b', '8233', 'p', '9009', 'F', 'n', 'S', 'b', 'V', '871', '9899', '8619', '3517', '229', '6129', '7163', 'K', 'J', 'Y', '5821', 'H']