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.
12, ['d', '785', '1481', 'U', '5321', 'l', 'w', 'x', '8097', '1315', '3207', '5091', '8827', '4179', 'K', '1257', '5759', '6727', 'S', '7861', '8337', '1859', 'R', 'd', 'u', '8019', '3573', '1735', 'b']