[Tutor] Creating a list from other lists

eryksun eryksun at gmail.com
Mon Oct 22 12:52:01 CEST 2012


On Mon, Oct 22, 2012 at 6:37 AM, Steven D'Aprano <steve at pearwood.info> wrote:
> On 22/10/12 21:21, Saad Javed wrote:
>>
>> for x, y , z in zip(a, b, c):
>> L.extend([x, y, z])
>> print L
>
> This is not your code, because that gives a SyntaxError. Where is
> the indentation? Indentation is required in Python, if you leave it
> out, your code will not work correctly.

It's an HTML post. Using these styled <span> tags never translates
well to the text/plain section.

<div>

for x, y , z in zip(a, b, c):

</div>
<div>
<span class="Apple-tab-span" style="white-space:pre">	</span>

    L.extend([x, y, z])

</div>
<div>
<span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>

    print L

</div>


More information about the Tutor mailing list