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.
14, ['w', '2943', '2409', 'N', 'V', '7137', '2213', '3049', 'r', '6967', 'x', '7853', 'l', 'B', 'K', 'r', '3025', 'q', '387', 'r', 'J', '4089', '1251', 'k', '6867', 't', 's', '5019', '8917', 'S']