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, ['e', 'K', '3983', 'Y', '1997', '6075', '9731', '6929', '6809', 'm', '8209', '7681', '3135', 'S', 'a', '1001', 's', '485', 'p', 'D', 'f', '5435', '1235', 'v', '4161', 'a', 'Q', 'G', '2309']