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, ['4283', 'Q', '881', 'i', 'B', 'A', '1389', 'I', '8729', '9395', '5263', '2715', '3343', '113', '2433', 'D', 'V', '9255', 'R', '6951', 'p', 'V', '9229', 'j', '5991', 'N', '3561']