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.
8, ['g', '7267', '8193', 'H', '7913', '1875', '9939', '1733', '677', '699', 'v', 'A', 'Q', '1715', '7187', 'w', '5835', '7649', 'o', 'o', 's', '8833', 'R']