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.
7, ['3561', 'z', '3317', '521', 'K', '5189', 'n', 'd', '6199', 'P', 'k', '557', 'i', 'O', 'S', 'D', 'P', '1775', '6127', 'e', '3125', 'c', 'z', '3569', '5285', '3307', '5871', '8009', '5869', '9385']