Just confusement | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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?

14th Aug 2017, 1:38 AM
Kevin AS
Kevin AS - avatar
1 Answer