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, ['f', '6097', '1471', '2431', '9617', 'G', '7865', 'P', 'K', '431', '7213', '1627', '6781', '2423', 'E', '6035', '1703', 'G', '3817', '3143']