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.
10, ['Y', 'Y', '5327', '2563', 'm', '4453', 'H', '8095', 'G', 'q', '7949', 'R', 'g', '9131', 'd', 'h', 'f', '4539', 'l', '4009', '9197', '5833', '4239']