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.
6, ['651', 'j', '3361', 'h', '5183', 't', 'c', '9877', 'n', 'h', '6237', '5793', '8281', 'E', '5235', '9673', '8885', '4293', '4461', '3521', '6213', 'Z']