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.
3, ['7541', '8741', 'P', '2021', '7835', 'w', 'H', '7435', '8241', 'Y', 'x', 'O', 'v', '6051', 'V', '9145', 'p', 'W', 'f', '9135', '7549', '4141', 'I', '4635', 't', 's', 'N']