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, ['2861', '4173', 'Q', 'g', '8505', '9549', '5225', 'W', 'V', 'c', '4043', '8015', '4563', 'c', '3543', 'j', 'Y', 'A', '3615', '9445']