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.
9, ['T', 'u', 'r', '5139', 'i', 'X', '379', 'u', '7491', '2343', '1417', 't', '4137', '1431', 'T', 'g', '3647', '4183', '2269', 'E', '5197', 'H', '5161', '437', 'Q', 'p', 'X', 'L', 'V']