Newbie getting confused again

Peter Hansen peter at engcorp.com
Fri Mar 4 21:32:30 EST 2005


Peter Hansen wrote:
> It's me wrote:
> 
>> If I have:
>>
>>     a = (1,2,3)
> 
> 
> Note that this is a tuple.
> 
>> how do I ended up with:
>>
>>     res=[(1), (2), (3), (4), (5)]
> 
> 
> Not that this is a list.  The two aren't the same thing.
   ^^^^
I meant to say "Note" here, not "Not"... in case it wasn't
obvious.

-Peter



More information about the Python-list mailing list