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.
4, ['7049', '3925', 'r', 'x', 'u', 'X', '271', 'A', '9385', '2641', '6119', '5029', 'X', '7957', 'D', 'H', '6155', 'e', 'A', 'M', '2609', '1523', '7321', 'E', '4163']