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.
2, ['D', '2489', 'c', '3033', 'A', 'e', 'R', '695', '8613', 'U', '4409', 'w', '7705', '1743', '1305', 'V', '5073', '547', '1233', 'z', 'D', '4921', 'V', '575', 'C']