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, ['4149', 'y', 'T', '3655', '177', '9489', '2573', 'Q', '881', 'R', 'd', 'q', '7739', 'v', '7465', 'w', '4069', 'D', '1623', '2849', 'S', 'C', 'h', '6733', 'k', '1417', '7971', 'h']