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.
8, ['8747', '3221', '605', '2849', 'h', 'v', 'j', '7169', '5859', 'b', '107', '2237', 'j', '9881', '6301', 's', 'L', '9089', '337']