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.
7, ['z', 'n', '1645', 'F', '3135', 'w', 'K', '2411', 'b', 'B', 'q', '5281', '3239', 'g', '5679', 'm', 'M', 'F', '2997', 'X', '6659', 't', 'p', 'J', '3777', '4453', '7111', '1065']