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, ['b', 'i', 'Q', '2607', '4729', '7595', 'B', '107', 'J', '4079', '4269', '7019', '2467', 'R', '1629', '2223', 'u', '8243', '1107', '1475', '2879', 'C', 'S', '2769', 'U', '4383']