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', '3745', 'R', 'G', 'c', '6935', '85', '9469', '2483', 'j', 'y', 'R', '3349', '6101', '1311', '7183', 'D', '4121', 'l', '7023', 'm', '4031', '6883']