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.
7, ['9501', '761', '1371', 'J', '51', '9955', 'D', 'g', 'A', '2039', '4609', 'G', '3997', '8701', '6585', 'p', '2239', '3699', 'j', 'z', '1133', 'g']