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, ['M', '35', 'w', 'E', '9509', 'u', 'j', 'K', '1033', '351', '1419', 'E', '4531', 'l', '7727', '3723', 'x', '5691', 'E', '3789', 'z', 'v', 'M', 'W', 'P', '2113', '3807', '4615']