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.
13, ['X', 'm', '4265', '2447', 'I', '9103', 'h', 'z', '5309', '2855', 'U', '7725', 'G', '165', 'h', 'D', '8797', 'q', '2943', '2055', '8877', '2091', '3559', '729', '521', '5843']