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.
5, ['w', '1431', 't', 'p', 'j', 'i', '8375', 't', '9617', 'u', 'k', 'B', '9979', '8069', '9715', '6119', 'U', '2691', 'r', 'L', 'v', '9853', 'K', '9327']