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, ['P', '6295', 'j', 'M', '3189', '6695', '797', 'O', '5175', '3181', 'c', 'b', 'H', 't', '4349', '1133', 'j', '4841', 'e', '8881', 'm', 'R', '5799', '6405', 'P']