Part 1. Definition
In this task, you are given inputs i and A, where i is an integer and A is a list. You need to output the first i elements of A, starting with the 1st element in A. i will always have a value less than the length of A
Part 2. Example
3, ['a', '34', 'f', '931', '7', '3432', '13245', '762']
Answer: a, 34, f
Explanation: Here, the first 3 elements from the list are 'a', '34', and 'f'.
Part 3. Exercise
11, ['D', 'Y', '6995', '1983', 'h', 'z', 'R', '8051', '1847', '3365', 'L', 'T', '4663', 'K', '6269', 'u', '1419', 'W', '6341', 'a', 'n', 'C', '871', '3619', 'q', '6769', '2921', 'a']
Answer:
D, Y, 6995, 1983, h, z, R, 8051, 1847, 3365, L