# map() **Функция map() - функция, которая применяют 1 другую функцию ко всем описанным итерирующимся аргументам** ## Синтаксис Синтаксис функции map() таков: ```python map(function, iterable) ``` Пример 1: ```python a,b,c = map(int, input().split) ''' Input = '23 16 19' a = 23 b = 16 c = 19 ''' ``` Пример 2: ```python org_list = [1, 2, 3, 4, 5] # define a function that returns the cube of `num` def cube(num): return num**3 fin_list = list(map(cube, org_list)) print(fin_list) # [1, 8, 27, 64, 125] ``` ^b0dac0 #compsci #python