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, ['W', 'S', '5067', 'V', '7249', 't', 'T', '4339', '7675', '141', 'e', 'm', '7897', '2107', 'h', '7447', 'n', 'z', '1557', '5229', 'm', '9787', 'F']