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, ['v', 'h', 'h', 'd', '3629', 'P', '9501', '9031', '8547', 'v', '621', 'Q', 'L', '4557', '181', 'J', 'L', '5861', '7093', '3247', '7877', '2369', '2235', '8623', '4615', '7305', 'J', '5841', '3337']