Where is the usage of (list comprehension) documented?

Peng Yu pengyu.ut at gmail.com
Sun Jan 14 20:27:26 EST 2018


> When you use square brackets, you're creating a generator, as in your
> second example. Your first example is a slightly different beast
> called a "generator expression". If you search for that in the docs or
> on the web, you'll find what you want.

Thanks. Can the documentation be found by `help()` in python?

-- 
Regards,
Peng



More information about the Python-list mailing list