reduce Function in Python February 14, 2022 from functools import reducel = [1,2,3,4,5]p = reduce(lambda x,y:x+y,l )print(p) Share Get link Facebook X Pinterest Email Other Apps Share Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment