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.
5, ['K', 'y', 'l', 'I', '2417', 'G', 'h', '3985', '5729', '9069', '543', 'w', '4627', '6849', '5027', 't', '635', '3833', 'o', 'W', 'B', '4031', 'm', '2465', '1705', 'L', '9711', 'm']