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', 'F', '7047', '9475', '1757', '1229', 'J', '1967', 'N', '3961', 's', '5913', '5805', 'x', '5563', '3017', '3113', '9905', '8179', '539', '8841', 'J', 't', 'y', 's', 'a', '9865', '6599', '5245', 'm']