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', '8575', 'A', '2377', '6939', 'F', '8417', 'r', 's', 'M', 'M', '3809', 'H', 'n', '7515', 't', 'D', '8203', 'E', 'o', 't', 'E', '4031', 'r', '4505', '7151', 'H', '1755', 'S', 'F']