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.
5, ['8081', 'b', '4227', '6785', 'f', '8631', 'K', '9389', 'V', '3339', '8603', '3011', '7531', 'G', '5317', '9599', 'U', 'q', 'z', 'R', 'r', '8853', '9633', '5251', 'F', 'q', '1401']