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, ['P', '8683', 'p', 'm', '2943', '161', '4027', 'l', 'j', 'F', '2411', 'c', 'x', 'R', '8179', 'w', 'i', 'u', '3915', '9169', 'v', '4729', '983', 't', 'm', 'W', '4365']