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.
11, ['5895', '6733', '5341', '1389', 'p', '1251', 'N', 'A', '179', 'J', '8885', '1493', '4253', '2327', 'U', '8983', 'R', '45', '4581', '7585', 'f', 'r']