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.
10, ['737', 'P', 'Z', 'h', 'G', '3683', 'R', 'F', '5165', '9819', '683', 'p', '1653', '2053', 'E', '2741', 'b', '9997', '4791', 'a']