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.
2, ['O', '4839', 'D', 'y', '4845', 'i', 'l', '965', '5905', '9523', 'y', '4489', '7145', 'J', '4373', 'o', 'H', '4343', 'D', 'H', '8883', '6039', 't', '8743', 's', '5565', '6221', '5133', '8923', 'd']