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.
4, ['M', 'h', '3519', '8307', '5257', '3647', '3433', '5823', '4721', '6931', 'g', '8253', 'I', '6617', '8995', '8143', '4263', '2697', '5095', 'i', 'Q', '3063', 'M', 'U', '7805']