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, ['E', 'K', 'K', 'G', '7943', 'i', '2507', 'B', 'L', 'k', 'f', '3197', 'Y', '1353', 'l', 'E', '5679', 'U', '875', 'C', '8257', 'R', 'h', '6039', 'T', '8417', 'U']