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, ['2135', '9589', 'H', 'd', 'd', 'L', 'r', 'u', '1047', '2895', '5825', 'k', '3381', '429', 'Y', '1449', 'o', '5113', '909', 'm', '6561', '2065', '6143', 'W', '1627', 't', '9139', '7587']