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, ['5541', '8885', 'l', '6459', 'H', '8029', '7093', '5731', '3297', '67', 'W', '7427', 'm', '5733', '571', 'u', 'd', '2605', '4345', '1055', 'z', '5851', 'C', 'a', '3577', '5731', 'o', '6267', '3983']