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.
10, ['5341', 'C', '9157', 'W', 'D', 'Z', '4031', 'D', 'z', '4083', '3259', '5387', '8645', 'z', '4721', '903', '3375', 'K', '3143', '4033', 'z', '7233', 'h', '481', '2129', '533', 'g', '4211', 'e']