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, ['8973', 'w', '8005', 'M', 's', 'I', '6507', '9825', 'b', '6495', 'A', '7747', '959', '7123', '8613', 'g', '1359', '7885', '4143', '7937', 'm', '4705', 'P', 'W', 'b', '9551', 'g']