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.
6, ['6781', '7009', 'E', '327', '6731', '7493', '9473', 'X', '1237', 'e', '273', '2661', 'h', 'z', '9089', 'K', 'W', '2781', '6259', '2745', '3663', 'o', '1575', '5763', 'd', '1821', '6843', '3759', 'p']