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.
6, ['5209', '5115', 'j', '6969', 'w', '175', 'V', 'z', '625', 'p', '6921', 'd', '3869', '6417', '2605', 'X', '5523', '7467', '1549', 'k', '5085', 'X', 'G', 's', '2851', '1629', '1373', 'q']