[Tutor] filling 2d array with zeros

Emile van Sebille emile at fenx.com
Mon Sep 27 21:12:34 CEST 2010


On 9/27/2010 10:54 AM Alex Hall said...
> What is wrong with the following line?
> self.am=[[(a,b)
>   for a in range(len(self.lines)) a=0]
>   for b in range(len(self.lines)) b=0]

The a=0 and b=0 -- what do you think they're doing?

Emile






More information about the Tutor mailing list