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.
8, ['7209', 'e', 'D', 'S', 'D', 'p', '701', '5189', '4227', '8987', '233', '1271', '6543', 'g', '1719', 'x', 'R', '2381', 'D', '1109', '871', '5151', 'x', 'o']