عامل استخدام كسارة
How to use filter, map, and reduce in Python 3
Nov 30, 2012 · oddNumbers = list (filter (lambda x: x%2 != 0, numbers)) print (oddNumbers) //Map. multiplyOf2 = list (map (lambda x: x*2, numbers)) print (multiplyOf2) //Reduce. The reduce function, since it is not commonly used, was removed from the builtin functions in Python 3....