Re: [Tutor] another for loop question - latin square (was: Tutor Digest, Vol 106, Issue 74)

2013-01-01 Thread Dave Angel
On 01/01/2013 08:27 PM, Brandon Merritt wrote: > Sorry, I should have been more clear in what I was trying to accomplish. I > am trying to build the latin square as follows: > > 1234567 > 2345671 > 3456712 > 4567123 > 5671234 > 6712345 > 7123456 > > So, the "scaleorder" is the n*n scale of the squa

Re: [Tutor] another for loop question - latin square

2012-12-30 Thread Alan Gauld
On 31/12/12 00:27, Steven D'Aprano wrote: On 31/12/12 10:59, Brandon Merritt wrote: I am having trouble figuring out a solution after a couple hours now of playing with the code. I'm trying to make a latin square using the code below: I totally agree with everything Steven said. However there

Re: [Tutor] another for loop question - latin square

2012-12-30 Thread Mitya Sirenef
On 12/30/2012 06:59 PM, Brandon Merritt wrote: I am having trouble figuring out a solution after a couple hours now of playing with the code. I'm trying to make a latin square using the code below: scaleorder = int(raw_input('Please enter a number for an n*n square: ')) topleft = int(raw_inp

Re: [Tutor] another for loop question - latin square

2012-12-30 Thread Dave Angel
On 12/30/2012 06:59 PM, Brandon Merritt wrote: > I am having trouble Please tell us what Python version you're targeting. It looks like 2.7, but you really should specify it for us. Next, you should tell us your skill level; are you experienced at another language and learning Python, or what?

Re: [Tutor] another for loop question - latin square

2012-12-30 Thread Steven D'Aprano
On 31/12/12 10:59, Brandon Merritt wrote: I am having trouble figuring out a solution after a couple hours now of playing with the code. I'm trying to make a latin square using the code below: scaleorder = int(raw_input('Please enter a number for an n*n square: ')) topleft = int(raw_input('Pleas

[Tutor] another for loop question - latin square

2012-12-30 Thread Brandon Merritt
I am having trouble figuring out a solution after a couple hours now of playing with the code. I'm trying to make a latin square using the code below: scaleorder = int(raw_input('Please enter a number for an n*n square: ')) topleft = int(raw_input('Please enter the top left number for the square