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.
9, ['n', 'A', 'Q', '3875', 's', '9095', 'o', '9001', 'c', '7457', '8633', '813', 'R', '1509', 'O', 'L', '2017', '5293', '4281', 'M', '3403', 'o', '8469', 'w', '2153', 'w', 'p', '781', 'X', '1347']