Re: [Tutor] Tutor Digest, Vol 102, Issue 48

2012-08-21 Thread Alan Gauld
On 21/08/12 06:12, Osemeka Osuagwu wrote: right_product(row, col) for (row = 0, col = 18) I had anticipated this and added the if collen(data[row])-3: statement But because of zero indexing you need this to be either: if col = len(data[row])-3: or if col len(data[row])-4: ie. if row

Re: [Tutor] Tutor Digest, Vol 102, Issue 48

2012-08-20 Thread Osemeka Osuagwu
Dear Mark, I can't see a Python array anywhere. Do you mean the list of lists? :) THE CODE [snipped as it's been mangled, was it posted in html and not plain text or what? I'm too lazy to unmangle it, others might be kinder] Again, my bad. Here's the code in plain text: