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, ['8151', '5605', '9747', '1633', '4559', '1291', '2151', '1501', '4157', '3309', 'H', 'O', '7795', 'B', 'R', 'y', 'c', '747', '9487']