Detailed Instructions: 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.
Problem:4, ['2977', 'l', '3667', 'n', 'D', '651', '1461', 'V', 'D', 'T', '6197', '5759', '6809', 'v', '3891', '555', 'o', '7133', 'Q', '6053']
Solution:
2977, l, 3667, n, D, 651, 1461, V, D, T, 6197, 5759, 6809, v, 3891, 555