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.
6, ['1967', 'i', 'U', 'X', 'v', 'M', 'R', '6687', 'l', '1801', 'j', '5479', '4071', 'Z', 'W', 'r', 'O', '8955', '9049', '2949', '3653', 'a', 'A', 'f', '9091', 'Y', '1457', 'c']