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, ['6751', '5183', '2839', 'r', '4137', 'f', '17', '327', '3145', 'X', '1211', '2801', '4779', 'x', 's', 'N', 's', '9341', 'H', 's', '9335', 'W', 'j', '4033', '1897', '6913', 'j', 'g']