Sacred Heart a écrit :
> On Jan 17, 1:35 pm, [EMAIL PROTECTED] wrote:
>> for i in zip(array1, array2):
>>     print i
>>
>> Although I take it you meant four d, the issue with this method is
>> that once you hit the end of one array  the rest of the other one is
>> ignored.
> 
> Yes, small typo there.
> 
> Okey, so if my array1 is has 4 elements, and array2 has 6, it won't
> loop trough the last 2 in array2? How do I make it do that?

<ot>
Please gentlemen: Python has no builtin type named 'array', so
   s/array/list/g
</ot>


Just pad your shortest list.


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to