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, ['L', '5387', '3395', 'c', '7909', 'z', '6977', '2203', '1777', '4835', '3343', '945', 'R', '5193', '3761', '4453', '1807', '999', '3187']