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.
2, ['M', '9187', 'n', 'H', '6589', '6805', '4069', '9335', 'Y', 'H', 'G', '8395', '2265', 't', '207', '9841', '5859', '5423', 'y', 'g', '3975', 'H', 'y', 'O', '5851', 'x', '5515', 'R']