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, ['T', '1751', '2559', '4365', 'S', 'n', 's', '2577', '3221', 'B', 'A', 'M', '6009', '8961', '5521', 't', '6735', '307', '705', 'f', '7023', '6093', '245', '6187', 'z', '4327', '3525', 'q', 'E']