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, ['s', '8393', '3335', 'r', '5879', 'C', '8085', '7867', 'e', 'M', 'R', 'K', '1789', '8407', '5941', 'v', 'o', 'F', 'a', '4505', '1775', '1569', 'e', 'I', 'Y', '8635']