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, ['d', '5197', 'w', '7463', 'y', 't', 'J', '8891', '133', 'C', '9783', 'e', '6985', 'A', 'K', '3157', '9991', '4349', 'p', 'y', '1467', '3647', '2497', 'Q', 'A', '9503']