Source code for kyu_8.enumerable_magic_25.take

#  Created by Egor Kostan.
#  GitHub: https://github.com/ikostan
#  LinkedIn: https://www.linkedin.com/in/egor-kostan/


[docs]def take(arr: list, n: int) -> list: """ Accepts a list/array and a number n, and returns a list/array array of the first n elements from the list/array. :param arr: :param n: :return: """ return arr[:n]