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.
3, ['I', 'j', '5437', 'y', 'j', '197', 'U', '1553', 'h', 'D', 'b', 'j', '1993', '7337', '7959', 'g', 't', '1445', '6007', 'p', '8535', '5479', '9011', 'c', '1121']