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, ['G', '8427', '1777', '1775', 'm', '8609', '957', '1495', '4177', '7863', 'J', '3175', '2821', '8567', 'g', '9697', 'I']