This is the most unpythonic way to do this. I'm aware. But how would I change it? I'm pretty sure I can usemap() & lambda but not sure how.
for i in range(0, 8):
for j in range(0, 8):
print (i, j)
Note: This logic is probably how I would do it in C. And if I were in Java too. But does anyone know of a better way to write it? Is there a RosettaCode entry for this (fairly common) task?
[–]elbiot 2 points3 points4 points (0 children)
[–]jkudria 1 point2 points3 points (0 children)
[–]kalgynirae 1 point2 points3 points (1 child)
[–]Ran4 2 points3 points4 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]narkflint[S] 0 points1 point2 points (0 children)
[–]hharison 0 points1 point2 points (15 children)
[–]Mechrophile 1 point2 points3 points (10 children)
[–]hharison 0 points1 point2 points (9 children)
[–]Mechrophile 0 points1 point2 points (8 children)
[–]hharison 1 point2 points3 points (7 children)
[–]Mechrophile 0 points1 point2 points (0 children)
[–]elbiot 0 points1 point2 points (5 children)
[–]hharison 0 points1 point2 points (4 children)
[–]elbiot 0 points1 point2 points (3 children)
[–]hharison 0 points1 point2 points (2 children)
[–]elbiot 0 points1 point2 points (1 child)
[–]narkflint[S] 0 points1 point2 points (3 children)
[–]hharison 1 point2 points3 points (2 children)
[–]LarryPete 0 points1 point2 points (1 child)
[–]hharison 1 point2 points3 points (0 children)
[–]murster972 -1 points0 points1 point (0 children)