[Tutor] Improving My Simple Game Code for Speed, Memory and Learning

WolfRage wolfrage8765 at gmail.com
Sat Jan 3 19:15:01 CET 2015


On 01/03/2015 06:58 AM, Dave Angel wrote:
> self.transposed_grid = zip(*self.grid)
zip() sounds confusing. But I am going to try this and see what it gives 
me. But Somehow I think it will require me to understand yield, which I 
still do not totally get how to use.
Also from the documentation, will this work on my 2d List given that the 
lengths of the lists may not be the same? IE: 4 columns and 8 Rows.


More information about the Tutor mailing list