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.
8, ['O', '6413', 'F', '1129', 'N', 'c', 'v', '9883', '4557', 'd', '8915', 'p', '6975', 'n', 'N', '9245', '1759', 'R', 'p']