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.
12, ['5305', 'H', 'E', 'M', '6783', '3809', '175', 'C', 'g', '9811', 'M', '2659', '7309', 'M', 'L', '8537', '7011', '2327', '5193', 'p', '1507', 'n', '9129', 'j', 'R', '9771', 'Y', '3461', '5029']