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.
5, ['357', 'F', 'F', '6941', 'q', '1821', '9139', '9775', 'L', 'n', '1229', '8665', '6767', 'y', '3675', 'k', '5719', 'X', 'S', 'l', 'i', '7349', '5653', 'u', '573', 'U']