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, ['7007', '2887', '7239', '6289', '3625', 'v', '4991', 'w', '3277', '2447', '6627', '1527', '3051', 'I', '7743', '281', '8035', '5365', '9801', 'E', '7199', 'Q', '2889', '8033', 'U', 'k', '7245', 'c']