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.
2, ['1595', 'i', '41', 'P', 'D', 'r', '3913', 'W', 'I', '883', '7197', '1111', '4755', 'S', 'F', '8769', '731', 'U', 'P', 't', '3037', '3597', 'p']