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.
6, ['5859', '4997', '6443', '7281', '1737', 'r', 'D', 'y', '2445', '9853', '4049', 'z', '3155', 'w', '3917', '7847', '1707', 'N', '1959', '9257', '25', 'g', '2591', '3057', 'W', 'm']