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, ['T', 'Y', '1983', 'A', 'P', 'T', 'q', '6197', '8343', '6271', 'b', '4531', '6653', '7789', 'p', '3767', 'B', 'y', 'w', 'o', '7087', '1417', 'G', '2591', '7463']