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.
9, ['3215', '7379', '7949', '6753', '9005', 't', '629', 'p', '1309', 'D', 'c', '709', '729', 'V', 'q', '5431', '6495', '891']