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.
1, ['5489', '3145', '305', '9499', 'n', '9403', '3679', 'a', 'z', 'x', 'W', 'n', 'A', '3017', '7011', 'Z', '793', 'r', 'e', '2431', '315', '347', 'O', '9449', 'n', '8747']