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, ['i', '5253', 'Q', '7285', '7713', '9011', '3709', 'S', 's', '2633', 'l', '4499', '289', '9463', 'y', '1181', 'S', '1157', 'J', '91', '9903', '9281', 'o', 'm', '7053', 'J']