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, ['5517', 'A', '5295', '5719', 'o', 'K', '7691', 'F', '943', '3585', '8393', 'N', '4267', 'k', '6211', 'B', '6393', '3103', '5867', 's', '3213', '6957', '8289', 'E', 'R', '6641', '3495']