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.
9, ['z', '6243', 'r', 'A', '7345', '1785', 'm', '245', 'M', '5943', 'Q', '5177', '3957', '8421', '2807', '5693', '7681', 'K', '2883', '3997']