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, ['P', '9681', 'c', '3791', 'K', '9233', '3189', '9999', '9765', '1529', '6533', '4605', '6179', '239', 'I', 'W', 'x', '2081', 'v', 'e', 'd', 'E', '9393', 'q']