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.
5, ['7611', 'j', '2735', '7541', '771', '2007', 'G', 'X', 'p', 'c', '3909', '5635', 'J', '7301', '8573', '3083', 'l', '9447', 'Y', 'K', 'R', '4803', 'X', 'W', 'S', '5267', '8953', '1465', 'B', 'D']