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.
4, ['F', 'x', 'B', '4827', 'X', 'D', '5107', 'f', '3783', '9085', 'S', '1025', '7071', 'G', 'q', 'Q', '1505', 'j', 'E', 'Z', 'u', 't', 'g', 'U', '7065', 'H']