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, ['A', 'T', 'E', '1957', 'u', '6107', '6645', 'X', '7701', '1089', '2243', '1461', '7091', '857', '2437', '4203', '6967', '4709', 's', '3367']