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.
11, ['r', 'g', '8527', '4803', 'w', '41', 'c', '2779', 'g', 'y', 'e', '5107', 'T', '8353', 'M', '7423', '1729', '1955', '8979', '2819', 'A', '4389', '3233', '7727', '2587', '8135', '5267']