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, ['b', 'D', '1179', 'q', 'R', 'J', '4387', 'd', '2097', '9889', 'S', '8031', 'n', 'h', 'G', 'q', 'w', 'N', '3021', '8813', '2727', 'I', 'Y', 'E', '5157', '7097', 'U']