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.
7, ['7191', '5771', '2075', '9863', '2427', 'v', 'F', '3149', '3731', '8297', 'r', '5441', 'c', '5609', '4559', 'd', '4783', '6623', '51', '4693', 'j', '7153', '749']