Skip to content

Add list comprehension and generators #9

@gdassori

Description

@gdassori

A mention could be deserved by list comprensions and generators (on which an entire chapter, maybe, should be done).

Specifically, you may want to explain the difference between

[requests.get('http://website.com/page/{}'.format(x) for x in range(0,10)]

and

(requests.get('http://website.com/page/{}'.format(x) for x in range(0,10))

which is a very powerful example on how generators may help during software development.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions