It was mistyped as lisP comprehensions instead of lisT
comprehensions
This commit is contained in:
Shrayas 2015-01-14 22:16:26 +05:30
parent 19b55384f8
commit ee4fecdafe

View File

@ -337,7 +337,7 @@ which is equivalent to::
with open("/tmp/data.in") as f: with open("/tmp/data.in") as f:
print f.read() print f.read()
And yes, we do have Lisp comprehensions! In Python you might do:: And yes, we do have List comprehensions! In Python you might do::
odds_squared = [ odds_squared = [
pow(num, 2) pow(num, 2)