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.
4, ['655', '9271', 'U', 'q', '8169', 'O', '4631', 'E', '2995', 'I', '733', 'H', 'X', '9071', '9103', '6413', 'Z', 'u', 'C', '5169']