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.
8, ['1871', '1653', 'V', 'y', 'S', '5071', '1927', '3701', '5983', '431', 'S', '475', 'v', '2035', 'O', 'V', '9657', '2781', '4247', '461', '6869', 'R', '785']