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, ['6985', '9389', 'b', 'M', '4221', 'U', '3127', '7337', 'I', '685', '5323', 'f', '8291', '9721', '7585', 'j', '4979', 'A', 'G', '4665', 'j', 'B', '523']