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.
1, ['z', 'C', '3261', 't', 'd', 'u', 'P', '4057', 'H', 'L', 'A', 'n', '7237', 'h', 'a', '1123', 'R', '4577', 'e']