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.
4, ['G', 'K', 'b', 'u', '5673', 'u', '71', 'Y', '9927', 'J', 'R', 'v', '4543', 'm', 'A', 'a', 'f', '5031', '631', 'D', 't', '9347', '5283', 'A', '1531', 'd', '3005', '4355', 'K', '2477']