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.
7, ['T', 'F', '9597', 'w', 'd', '3665', '2333', 'C', '4785', '8101', 'q', '3879', '8283', '9937', '3215', 'M', 'l', 'a', 'Q', 'D', 'F', '6761', '5353', '3673', '7461', '6041', 'r', '8679', 'n']