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.
6, ['h', 'e', '9535', '5713', 'K', '1743', 'b', '4255', 'z', 'J', 'F', '7885', '2249', '5075', '6223', '7701', '8841', '9985', '4737', '9159', '6643', '1191', '7693', 'g', '1615', 'i', '2859', 'W', '9361', '9231']