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.
9, ['r', 'U', 'T', '9255', 'h', '6779', '9605', '1235', '8943', 'W', 'Y', '8823', 't', 'g', '4303', '8845', '1583', '8263', '7451', 'f', 'X', '5797', '833']