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.
7, ['9505', '541', 'm', 'F', 'r', 'c', 'j', 'I', '3759', 'M', 'C', 'H', '1187', '7597', '1605', 'S', '4685', 'U', 'g', '8939', 'x', 'c', 'i', '795', '767', '7439']