python loop reduction of code code example
Example: optimized for loop in python
#Squaring all numbers in a list
l=[43,23,51,76,98]
map(lambda num:num**2,l)
#Squaring all numbers in a list
l=[43,23,51,76,98]
map(lambda num:num**2,l)