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.
6, ['7761', '4943', 'O', '5067', 'n', 'M', 'o', 'c', '4131', '8403', '8567', '7195', '7123', '5667', 'G', '4851', 'T', '4059', 'M', '2101', 'h', 'T', '6923', 'K', '3007', '5413', '6897', 'd', 'W']