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.
3, ['5769', 'w', '7635', 'G', '3507', '703', 'N', '7971', 'w', 'i', 'R', '5001', 'f', '1223', '5265', '7709', '2901', '4697', 'v', '7829', '3739', '9209', '601']