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.
1, ['351', 'c', '7247', 'q', 'r', '5035', 'b', 'R', 'd', '359', '8447', '4393', '5499', 'H', '6665', '8107', 'I', '7243', 'x']