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.
6, ['t', 'T', 'r', '7853', 'S', 'y', 'q', '6045', 'G', 't', '4711', 'O', '7893', '9589', 'h', '6465', '4717', '8989', '5519', '8381', '6571', '3047', 'F']