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.
10, ['1781', '5397', 'z', '5717', '6007', 'Q', 'c', 'I', 'V', '3535', '6111', 'E', '4533', '8607', '399', '8651', '5885', 'p', 'A', '1551', 'u', 'T', 'b', 'v', '8791', 'n', 'K', '1917']