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.
5, ['3081', '7445', '5357', '1445', 'H', 'j', '7635', '571', '97', 'x', '6321', '2095', 'd', '3069', '5189', 'I', 'h', '2095', '3465', 'B', 'N', '1983', '8705', 'K']