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.
2, ['7209', '3847', 'p', 'A', '145', 'E', '8613', 'd', 'z', 'H', '7181', 'U', 'G', 'S', '3831', '2213', '5783', '629', 'm', 'O', 'Q', 'D', 'Z']