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.
6, ['8439', '3637', 'Z', 'm', 'Y', '2099', '5079', '3549', '7295', 'U', '4871', '8085', 'Z', 'P', 'O', '3953', '2531', '7333', '7209', '8667', '139', '4155']