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, ['n', 'E', 'd', '6123', '9523', 'r', '1041', '3395', '915', 'D', 'W', 'O', '3623', '8893', '8545', '2897', 'f', '8487', 'P', 'B', '7177']