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, ['n', 'p', '9671', 'd', '5965', '4063', 'A', '8777', 'N', 'u', '9613', 'Y', 'K', 'T', '7405', 'm', '1191', 'a', '7649', '3339', '8067', 'f', 'B']