Generator expressions and buildin functions : Generator : Statement PYTHON TUTORIALS


PYTHON TUTORIALS » Statement » Generator »

 

Generator expressions and buildin functions


print sum(x ** for x in range(4))
print sorted(x ** for x in range(4))
print sorted((x ** for x in range(4)), reverse=True)
import math
print map(math.sqrt, (x ** for x in range(4)))



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Statement
» Generator