[Tutor] The Python way and two dimensional lists

Phil phillor9 at gmail.com
Sun Nov 21 20:05:26 EST 2021


If I substitute rr where row was originally used that all is good again. 
It seems to be a bit of a work-around. Is there a more correct Python way?

rr = []

for col in solution:
     print(col[0])
     rr.append(col[0])

-- 

Regards,
Phil



More information about the Tutor mailing list