0
Just confusement
def add_five(x): return x + 5 nums = [11, 22, 33, 44, 55] result = list(map(add_five, nums)) print(result) how can add_five function make each number in list + 5? can someone explain this for noob?
1 Respuesta
def add_five(x): return x + 5 nums = [11, 22, 33, 44, 55] result = list(map(add_five, nums)) print(result) how can add_five function make each number in list + 5? can someone explain this for noob?