Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

Chris Angelico rosuav at gmail.com
Tue Apr 8 22:26:07 EDT 2014


On Wed, Apr 9, 2014 at 10:39 AM, alex23 <wuwei23 at gmail.com> wrote:
>> int
>
>
> Shorthand for 'integerise'.

Not at all. "Integrate". It's a vital mathematical operation, that's
why you always get a number back.

... I'll get my coat, too.

ChrisA



More information about the Python-list mailing list