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.
2, ['c', 'Y', 'T', 'u', '489', '2647', 'd', 'L', '509', '3389', '6507', '8623', '3683', 'Y', '3805', '2883', '509', '1311', '4123', 'm']