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, ['U', '4883', '3163', 'T', 'w', 'Q', '6395', '7621', 'S', 'j', '7971', '101', '4395', '1229', '9299', 'i', '8673', '5823', 'o']