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, ['L', 'l', 'g', 'K', 'j', 'M', '3655', 'U', '9529', 'f', 'P', '6613', '7345', 'o', 'R', 'M', '9637', '1601', '241', '6919', 'P', 'C', 'T', 'i', '1897']