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, ['P', 'v', '7237', 'k', 'o', 's', 'K', '9307', 'Y', 'd', 'B', 'r', '9705', '6561', '8323', 't', '6599', '2321', 'l', 'X', '3533', '3999', 'r', '7117', '9029', 'I', 'M', 'r']