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, ['r', '6279', 'q', '6725', 'l', '7005', 'S', '8111', 'l', '3857', 'S', '7059', '3123', 'f', 'U', '2889', 'y', '679', '1299', '4481', '3153', 'H', 'd', 'G', '9721']