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.
10, ['9505', 'I', 'U', '8773', '3437', 'a', 'T', '7181', 'k', '9899', '6705', 'K', 'y', 'I', '1681', 'Q', 'd', 'H', 'T', '8615', 'x', 'n', '7159', '7431', 'G']