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, ['3811', 'P', 'E', '3091', 'H', 'L', '7587', '2313', 'J', 't', 'u', '3023', '8711', '5189', 'j', 'N', '545', 'h', 'I', '2585', '2551', 'x']