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.
2, ['q', '8461', 'v', 'b', 'J', '9061', 'c', 'e', 'L', '7573', 'p', 'p', '965', '4083', '5699', '1099', 'O', '9557', 'c', 'a', 'M', 'F', '8355', 'T', '5045', 'S', '7719']