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.
7, ['u', 'z', 'j', '4533', '4869', '2657', '143', '3775', '8765', 'U', 'q', 'O', 'B', '9221', '7405', '3907', 'H', '433', 'S', '4881', '5861']