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.
1, ['5019', 'j', '8181', 'P', 'z', 'e', '3931', 'u', '7607', '7297', 'E', 'C', 'U', '1757', 'X', '6187', '1743', '1617', '1549', 'i', '8573', 'C', 'a', 'f', '313', '3023']