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, ['1681', '6903', 'P', 'Y', '4523', 'J', '7073', 'e', '4283', '4021', '6183', 'y', 'G', 'q', '4121', 'e', 'K', '3653', '3051', '2767', '2275', '257', '5731', '233', 'E', '7803']