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, ['a', '767', 'u', 'r', '9433', 'v', '4059', '4961', 'Y', '9549', '8429', '7815', '6831', '1499', 'N', 'v', 'v', 'E', 'm', '3321', 'u', '3341', 'S', '5367', '9171']