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, ['1691', '7869', '3855', 'm', '3835', 'j', '5961', 'm', 'a', 'm', 'o', '3771', 'Y', 'J', '8067', '8717', '7457', 'Z', '3407', 'B', 'H', 'R', 'g', 'H']