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, ['G', '459', 'M', '4509', '6329', 'c', '2453', '5979', 'M', '7863', '7227', 'J', 'd', '8319', 'Z', '2227', 'l', 'f', '7833']