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, ['7933', '2511', 'd', 'E', 'z', '7529', 's', 'T', '5869', '8187', 'u', '8949', '6387', '4841', 'w', '6425', '9669', 'X', '155', '3047', '1659', '9309', '1781']